def test_bin_1d(self):
     arr = np.array([1, 1, 2, 2])
     assert np.all(DataStore.bin_1d(arr, 2)[0] == np.array([1, 2]))