File tree Expand file tree Collapse file tree 1 file changed +5
-11
lines changed Expand file tree Collapse file tree 1 file changed +5
-11
lines changed Original file line number Diff line number Diff line change @@ -215,22 +215,16 @@ def _assign_axes(
215215 if cal_axis_type == "DefaultLinearAxis" :
216216 origin = xarr .attrs ["imagej" ][ij_dim + "_origin" ]
217217 scale = xarr .attrs ["imagej" ][ij_dim + "_scale" ]
218- jaxis = _str_to_cal_axis (cal_axis_type )(
219- ax_type , scale , origin
220- ) # EE: Might need to case scale and origin as jc.Double
218+ jaxis = _str_to_cal_axis (cal_axis_type )(ax_type , scale , origin )
221219 else :
222220 try :
223- jaxis = _str_to_cal_axis (cal_axis_type )(
224- ax_type , sj .to_java (doub_coords )
225- )
221+ jaxis = _str_to_cal_axis (cal_axis_type )(ax_type , doub_coords )
226222 except (JException , TypeError ):
227- jaxis = _get_fallback_linear_axis (
228- ax_type , sj .to_java (doub_coords )
229- )
223+ jaxis = _get_fallback_linear_axis (ax_type , doub_coords )
230224 else :
231- jaxis = _get_fallback_linear_axis (ax_type , sj . to_java ( doub_coords ) )
225+ jaxis = _get_fallback_linear_axis (ax_type , doub_coords )
232226 else :
233- jaxis = _get_fallback_linear_axis (ax_type , sj . to_java ( doub_coords ) )
227+ jaxis = _get_fallback_linear_axis (ax_type , doub_coords )
234228
235229 axes [ax_num ] = jaxis
236230
You can’t perform that action at this time.
0 commit comments