-
Notifications
You must be signed in to change notification settings - Fork 11
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
Periodic Angle Padding #242
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #242 +/- ##
========================================
Coverage 79.96% 79.96%
========================================
Files 13 13
Lines 1847 1847
Branches 282 282
========================================
Hits 1477 1477
Misses 280 280
Partials 90 90
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
We were getting the same results with the older method, so I do not think any tests or testing values need to be changed. |
Below is the gist/notebook showing the implementation of the https://gist.github.com/cadeduckworth/58e687f93a3612cf680c660f3181f13e EDIT: @orbeckst |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please also update CHANGES.
df1 = df[df.dihedral > 180 - padding].copy(deep=True) | ||
df1.dihedral -= 360 | ||
df2 = df[df.dihedral < -180 + padding] | ||
df2 = df[df.dihedral < -180 + padding].copy(deep=True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it would be ok to leave out deep=True
and rely on the default. I understand that you're trying to be extra cautious. Your choice.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would like to leave it to be cautious and explicit, but also so that someone working on this module in the future is aware that this specification could be necessary in the event that pandas makes any changes.
@orbeckst |
close #241
Refs: