def test_image_arry_units(self): im_arr = ImageArray(dummy_image(0.3, 3), input_units='cm') assert str(im_arr.units) == 'cm' new_im = im_arr.in_units('km') assert str(new_im.units) == 'km'
def test_image_arry_units(self): im_arr = ImageArray(dummy_image(0.3, 3), units="cm") assert str(im_arr.units) == "cm" new_im = im_arr.in_units("km") assert str(new_im.units) == "km"