Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use image scale for points annotations (#29)
This introduces a workaround for handling a pending change to the physical scale and units of the OME-Zarr metadata: chanzuckerberg/cryoet-data-portal-backend#24 The workaround is to use the highest-resolution image scale from the tomogram image, and also use it for the annotation points layer because its coordinates are given in the data space of the highest resolution image. This should not change the behavior with respect to the existing OME-Zarrs (which have a high-res scale of 1), but should ensure that the points remain aligned with the images when the scale change comes in. An alternative fix would have been to multiply the points data with the scale, but I avoided this because it mutates the primary data rather than its visualization.
- Loading branch information