Skip to content
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

Improve storage pixel size/scale Python API #31

Open
andy-sweet opened this issue Feb 28, 2023 · 0 comments
Open

Improve storage pixel size/scale Python API #31

andy-sweet opened this issue Feb 28, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@andy-sweet
Copy link
Contributor

In acquire-project/cpx#110, we added a Python API to control pixel size/scale in the zarr storage device. After that PR, you can do something like

p.video[0].storage.settings.pixel_scale_um = (0.5, 4)

to specify the (y, x) pixel sizes in microns.

The main goal of this task is to consider and implement alternatives that may be more ergonomic. For example, one alternative may be to change the name and only allow specification of a scalar:

p.video[0].storage.settings.microns_per_pixel = 0.5

Or we could think more about future support for camera transform parameters and make this consistent with those ideas.

@aliddell aliddell transferred this issue from another repository Jun 20, 2023
@aliddell aliddell added the enhancement New feature or request label Jun 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Backlog
Development

No branches or pull requests

2 participants