You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit refactors the dims.assign_axes() method to (1)
drop the use of EnumeratedAxis (until additional metadata mechanisms
are available) and (2) resolves a bug with handling singleton
dimensions.
(1) Some plugins, like BoneJ, look specifically for DefaultLinearAxis
when performing some calculations. While EnumeratedAxis works
technically, it is not supported (likely) by most plugins. Additionally,
ImageJ2 seems to always return DefaultLinearAxis. Until we can match
an EnmeratedAxis, it does not make a lot of sense to default to using
it. Especially if there are issues downstream like BoneJ.
(2) When calculating the scale for a singleton dimension, the coordinate
array only has one value. Thus attempting to calculate the slope from
the first two entries of the coord array is not possible. Instead, we
assign the scale to 1 for all singleton dimensions.
0 commit comments