Skip to content

Changing the default tqdm output stream. #476

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

Merged
merged 1 commit into from
Apr 3, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions Python/scripts/characterize_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,7 @@ def inspect_files(
maxinterval=60,
miniters=tqdm_total // 10,
disable=disable_tqdm,
file=sys.stdout,
):
try:
result = future.result()
Expand Down Expand Up @@ -578,6 +579,7 @@ def inspect_series(
maxinterval=60,
miniters=tqdm_total // 10,
disable=disable_tqdm,
file=sys.stdout,
):
try:
result = future.result()
Expand Down Expand Up @@ -806,6 +808,10 @@ def characterize_data(argv=None):
--metadata_keys "0008|0060" --metadata_keys_headings modality --ignore_problems --create_summary_image \
--max_processes 15

Run a generic file analysis using a configuration file and redirect stderr to file.
python characterize_data.py ../../Data/ Output/generic_image_data_report.csv per_file \
--configuration_file ../../Data/characterize_data_user_defaults.json 2> errors.txt

Output:
------
The output from the script includes:
Expand Down