-
Notifications
You must be signed in to change notification settings - Fork 663
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
Fixes issues 3166 and 3255 #3256
Conversation
@@ -330,6 +330,9 @@ def _get_dt(self): | |||
t1 = self.ts.time | |||
dt = t1 - t0 | |||
except StopIteration: | |||
msg = ('dt information could not be obtained, defaulting to 0 ps. ' | |||
'Note: in MDAnalysis 2.1.0 this default will change 1 ps.') | |||
warnings.warn(msg) | |||
return 0 |
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.
This is inconsistent with what we do in base.py, ideally this should just throw an AttributeError and default on what's done in base?
Codecov Report
@@ Coverage Diff @@
## develop #3256 +/- ##
===========================================
+ Coverage 92.85% 92.86% +0.01%
===========================================
Files 170 170
Lines 22840 22845 +5
Branches 3240 3240
===========================================
+ Hits 21208 21215 +7
+ Misses 1584 1582 -2
Partials 48 48
Continue to review full report at Codecov.
|
Fixes #3166 #3255
Changes made in this Pull Request:
dt
calls for netcdf files.PR Checklist