@@ -294,16 +294,6 @@ def _is_numeric_scale(coords_array: np.ndarray) -> bool:
294294 return np .issubdtype (coords_array .dtype , np .number )
295295
296296
297- def _get_enumerated_axis ():
298- """Get EnumeratedAxis.
299-
300- EnumeratedAxis is only in releases later than March 2020. If using
301- an older version of ImageJ without EnumeratedAxis, use
302- _get_linear_axis() instead.
303- """
304- return sj .jimport ("net.imagej.axis.EnumeratedAxis" )
305-
306-
307297def _get_default_linear_axis (axis_type : "jc.AxisType" , values ):
308298 """
309299 Get an instance of a DefaultLinearAxis.
@@ -318,19 +308,6 @@ def _get_default_linear_axis(axis_type: "jc.AxisType", values):
318308 return jc .DefaultLinearAxis (axis_type , scale , origin )
319309
320310
321- def _get_linear_axis (axis_type : "jc.AxisType" , values ):
322- """Get linear axis.
323-
324- This is used if no EnumeratedAxis is found. If EnumeratedAxis
325- is available, use _get_enumerated_axis() instead.
326- """
327- DefaultLinearAxis = sj .jimport ("net.imagej.axis.DefaultLinearAxis" )
328- origin = values [0 ]
329- scale = values [1 ] - values [0 ]
330- axis = DefaultLinearAxis (axis_type , scale , origin )
331- return axis
332-
333-
334311def _dataset_to_imgplus (rai : "jc.RandomAccessibleInterval" ) -> "jc.ImgPlus" :
335312 """Get an ImgPlus from a Dataset.
336313
0 commit comments