Skip to content

Commit

Permalink
Bugfix: stdout output for tqdm (cctbx#773)
Browse files Browse the repository at this point in the history
Bugfix: stdout output for tqdm
  • Loading branch information
graeme-winter authored Nov 25, 2024
1 parent 56b467b commit 8d36ec9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions newsfragments/773.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
``dials.import``: force tqdm output to stdout not stderr as default
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:
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 8d36ec9

Please sign in to comment.