Skip to content

EMD reader promotes integer data to float64 #476

@mkuehbach

Description

@mkuehbach

Observed on a Velox EMD file where images were stored as chunked 16bit unsigned int datasets, i.e. "u2" rosettasciio returns these under the "data" entry in the parsing results dictionary as a numpy array whose values are promoted to np.float64. While this is not necessarily in this particular case a loss in precision but in practice resulting in an eventually unnecessary quadrupling of the memory consumption.

Is there are chance to have the individual entries under the "data" entry read and loaded such that these are represented with the same datatype as in the source or is there some normalization required for reasons and context that I am missing, that demands a promotion to np.float64 ?

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