@@ -294,16 +294,6 @@ def _is_numeric_scale(coords_array: np.ndarray) -> bool:
294
294
return np .issubdtype (coords_array .dtype , np .number )
295
295
296
296
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
-
307
297
def _get_default_linear_axis (axis_type : "jc.AxisType" , values ):
308
298
"""
309
299
Get an instance of a DefaultLinearAxis.
@@ -318,19 +308,6 @@ def _get_default_linear_axis(axis_type: "jc.AxisType", values):
318
308
return jc .DefaultLinearAxis (axis_type , scale , origin )
319
309
320
310
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
-
334
311
def _dataset_to_imgplus (rai : "jc.RandomAccessibleInterval" ) -> "jc.ImgPlus" :
335
312
"""Get an ImgPlus from a Dataset.
336
313
0 commit comments