Skip to content

file size reporting: adaptive unit #1378

@bpinsard

Description

@bpinsard

What would you like to see added in this software?

Running MRIQC reports file size on different modalities, but for anatomical images, GB unit and truncation gives 0.00GB , which is not really informative.

2025-01-29 14:46:34 | IMPORTANT | mriqc            | Extracting metadata and entities for 1 input runs of modality 't1w'...
2025-01-29 14:46:34 | IMPORTANT | mriqc            | File size ('t1w'): 0.00|0.00 GB [maximum|average].
2025-01-29 14:46:34 | IMPORTANT | mriqc            | Extracting metadata and entities for 2 input runs of modality 't2w'...
2025-01-29 14:46:34 | IMPORTANT | mriqc            | File size ('t2w'): 0.00|0.00 GB [maximum|average].
2025-01-29 14:46:34 | IMPORTANT | mriqc            | Extracting metadata and entities for 2 input runs of modality 'bold'...
2025-01-29 14:46:34 | IMPORTANT | mriqc            | File size ('bold'): 0.21|0.16 GB [maximum|average].

Having

f"File size ('{mod}'): {_max_size:.2f}|{np.mean(size):.2f} GB [maximum|average].",

Do you have any interest in helping implement the feature?

No

Additional information / screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions