Skip to content

Units in mne.utils.sizeof_fmt() incorrect #12961

@cbrnr

Description

@cbrnr

The helper function mne.utils.sizeof_fmt() creates a string of a given number of bytes in a human-readable format (with appropriate prefixes). However, it uses base 2, so the units should be kiB, MiB, GiB, ... and not kB, MB, GB, ... (which are base 10).

We should either change the displayed units or the base. Which one would you prefer?

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