Skip to content

Dtype in Info object (and other useful attributes to have?) #474

@theXYZT

Description

@theXYZT

Based on #472, I noticed that the General Info class could expose a few more attributes that are useful. Here are a couple I was surprised to see weren't provided:

  1. dtype: Weird this isn't explicitly available as complex_data is provided and, from reading the code in base/base.py, it appears that dtype is inferred via np.complex64 if self.complex_data else np.float32

  2. sample_shape: Since shape is provided, shouldn't sample_shape be provided as well?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions