Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue 4339 #4830

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion package/CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,12 @@ The rules for this file:


-------------------------------------------------------------------------------
??/??/?? IAlibay, ChiahsinChu, RMeli
??/??/?? IAlibay, ChiahsinChu, RMeli, tanishy7777

* 2.9.0

Fixes
* Fixed array to scalar deprecation warning by using np.atan2() instead of atan2()

Enhancements
* Add check and warning for empty (all zero) coordinates in RDKit converter (PR #4824)
Expand Down
2 changes: 1 addition & 1 deletion package/MDAnalysis/analysis/nuclinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ def phase_cp(universe, seg, i):
+ (r3_d * cos(4 * pi * 2.0 / 5.0)) + (r4_d * cos(4 * pi * 3.0 / 5.0))
+ (r5_d * cos(4 * pi * 4.0 / 5.0))) * sqrt(2.0 / 5.0)

phase_ang = (atan2(D, C) + (pi / 2.)) * 180. / pi
phase_ang = (np.arctan2(D, C) + (pi / 2.)) * 180. / pi
return phase_ang % 360


Expand Down
Loading