Repository navigation
Add verbose option to AtomGroup.write for multiframe writing - #5557
Open
steveharington8484 wants to merge 1 commit into
Open
steveharington8484 wants to merge 1 commit into
steveharington8484 wants to merge 1 commit into
Conversation
Add a 'verbose' keyword to AtomGroup.write() that displays a progress bar (MDAnalysis.lib.log.ProgressBar) while writing multiple frames passed via the 'frames' keyword. The single-frame path is unchanged; verbose is consumed by write() and not forwarded to the writer.
Documentation build overview
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #5557 +/- ##
========================================
Coverage 93.93% 93.93%
========================================
Files 184 184
Lines 22680 22681 +1
Branches 3228 3228
========================================
+ Hits 21304 21306 +2
+ Misses 916 915 -1
Partials 460 460 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
IAlibay
requested changes
Nov 23, 2026
IAlibay
left a comment
Member
There was a problem hiding this comment.
Thanks for opening this PR. However as-is, the PR itself doesn't meet our submissions standards.
Could you:
- Add back the PR template details - specifically the "developer certificate of origin" and the "LLM / AI generated code disclosure".
- Either link to the issue you are trying to fix, or open an issue describing what you are trying to fix.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds a
verbosekeyword toAtomGroup.write()that displays a progress bar (MDAnalysis.lib.log.ProgressBar) while writing multiple frames requested via theframeskeyword. Resolves the# TODO: Add a 'verbose' option alongside 'frames'..Changes
verbose=Falseparameter toAtomGroup.write()(consumed by the signature, never forwarded to the writer via**kwargs).framesis notNone) wraps the frame iteration inProgressBar(trj_frames, verbose=verbose, desc="Writing frames").frames is None) is unchanged.verbosein the docstring with a.. versionadded:: 2.12.0note.TestAtomGroupWriting: verbose frame writing, stderr progress output (capsys), and no forwarding ofverboseto writers.Testing
Full test suite run after the change: 20831 passed, 985 skipped, 7 xfailed, 2 xpassed.