Skip to content

Commit

Permalink
TQDM -> stdout (cctbx#775)
Browse files Browse the repository at this point in the history
* Reinstate tqdm -> stdout
  • Loading branch information
graeme-winter authored Nov 26, 2024
1 parent c46a758 commit edb60e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions newsfragments/775.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
``dials.import``: set tqdm output to stdout (again)
2 changes: 1 addition & 1 deletion src/dxtbx/model/experiment_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,7 @@ def from_filenames(
format_kwargs = {}

if os.isatty and len(filenames) > 1 and "DIALS_NOBANNER" not in os.environ:
filename_iter = tqdm(to_process, total=len(filenames))
filename_iter = tqdm(to_process, total=len(filenames), file=sys.stdout)
else:
filename_iter = to_process

Expand Down

0 comments on commit edb60e4

Please sign in to comment.