-
Notifications
You must be signed in to change notification settings - Fork 10
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
Update the MultiscaleImage API #238
base: main
Are you sure you want to change the base?
Conversation
class ImageProperties(Protocol): | ||
"""Class requirements for level properties of images. | ||
|
||
Lifecycle: experimental | ||
""" | ||
|
||
@property | ||
def name(self) -> str: | ||
"""The key for the image. | ||
|
||
Lifecycle: experimental | ||
""" | ||
|
||
@property | ||
def shape(self) -> Tuple[int, ...]: | ||
"""Size of each axis of the image. | ||
|
||
Lifecycle: experimental | ||
""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This class didn't add much value as is. We may want to expand it to include more information or just remove it altogether.
python-spec/src/somacore/spatial.py
Outdated
coordinate_space: Union[Sequence[str], coordinates.CoordinateSpace] = ( | ||
"x", | ||
"y", | ||
), | ||
axis_types: Sequence[str] = ("channel", "height", "width"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a better name or better argument to take to distinguish between the on disk data order and the coordinate space?
* Remove ``axis_type`` parameter from ``create`` * Add parameters to specify initial Image URI. * Add ``data_axis_order`` to ``create`` and ``read_spatial_region``.
* Fix DenseNDArray types to be _DenseND * Add return type for the new `set` methods * Add `data_axis_order` property * Add `has_channel_axis` property * Add `nchannel` property * Fix docstring for `level_shape`
This PR is a work in progress. The goal is to simplify/improve the MultiscaleImage API.