-
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
fix: get_writer errors if filename is none #4043
fix: get_writer errors if filename is none #4043
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## develop #4043 +/- ##
========================================
Coverage 93.53% 93.54%
========================================
Files 191 191
Lines 25063 25065 +2
Branches 4042 4042
========================================
+ Hits 23443 23446 +3
Misses 1099 1099
+ Partials 521 520 -1
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
5b6e802
to
f656944
Compare
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.
What's the bug, i.e., do you have example code that triggers it?
package/CHANGELOG
Outdated
@@ -19,6 +19,7 @@ The rules for this file: | |||
* 2.5.0 | |||
|
|||
Fixes | |||
* Fix get_writer format uninitialized (PR #4043) |
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.
Also add your GH handle to the list of contributors.
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.
still todo
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'm not going to make this a blocking request - but for the few folks that read the changelog to work out what changed in the package, could I ask for a little bit more information? Something like "Fix uninitialized format
variable issue when calling selections.get_writer directly
" would probably go a long way.
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.
Good point, especially when we don't have an issue to point to.
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.
Gotcha, on it
f656944
to
8c9b071
Compare
It's a mini-bug that doesn't actually happen in the way the function is called. However, if you call the function with just the format argument, it'll error
This will error |
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.
lgtm, just add your GH handle to CHANGELOG
package/CHANGELOG
Outdated
@@ -19,6 +19,7 @@ The rules for this file: | |||
* 2.5.0 | |||
|
|||
Fixes | |||
* Fix get_writer format uninitialized (PR #4043) |
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.
still todo
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.
Just a more explicit CHANGELOG entry, please, see https://github.com/MDAnalysis/mdanalysis/pull/4043/files#r1122512703
Not sure why CI is not running. |
Thanks for the merge, it's a small contribution but I hope to send more in |
Fixes a small bug
Changes made in this Pull Request:
PR Checklist