def test_list_of_two_arrays(self): arrays = [ np.zeros((1, ), dtype=np.int8), np.zeros((1, ), dtype=np.int16) ] observed = iadt.increase_array_resolutions_(arrays, 2) assert observed[0].dtype.name == "int16" assert observed[1].dtype.name == "int32"
def test_list_of_one_array(self): arr = np.zeros((1, ), dtype=np.int8) observed = iadt.increase_array_resolutions_([arr], 2) assert observed[0].dtype.name == "int16"
def test_single_array_factor_2(self): arr = np.zeros((1, ), dtype=np.int8) observed = iadt.increase_array_resolutions_(arr, 2) assert observed.dtype.name == "int16"