Skip to content
This repository was archived by the owner on Jan 20, 2025. It is now read-only.

Commit edb60e4

Browse files
TQDM -> stdout (cctbx#775)
* Reinstate tqdm -> stdout
1 parent c46a758 commit edb60e4

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

newsfragments/775.bugfix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
``dials.import``: set tqdm output to stdout (again)

src/dxtbx/model/experiment_list.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,7 @@ def from_filenames(
677677
format_kwargs = {}
678678

679679
if os.isatty and len(filenames) > 1 and "DIALS_NOBANNER" not in os.environ:
680-
filename_iter = tqdm(to_process, total=len(filenames))
680+
filename_iter = tqdm(to_process, total=len(filenames), file=sys.stdout)
681681
else:
682682
filename_iter = to_process
683683

0 commit comments

Comments
 (0)