@hypothesis.settings(deadline=None)
@hypothesis.given(strax.testutils.several_fake_records)
def test_channel_split(records):
    channel_range = np.asarray([[0, 0], [1, 2], [3, 3], [4, 999]])
    result = list(straxen.split_channel_ranges(records, channel_range))
    result_2 = channel_split_naive(records, channel_range)
    assert (len(result) == len(result_2))
    for (i, _) in enumerate(result):
        np.testing.assert_array_equal(np.unique(result[i]['channel']), np.unique(result_2[i]['channel']))
        np.testing.assert_array_equal(result[i], result_2[i])
@hypothesis.settings(deadline=None)
@hypothesis.given(strax.testutils.several_fake_records)
def test_channel_split(records):
    channel_range = np.asarray([[0, 0], [1, 2], [3, 3], [4, 999]])
    result = list(straxen.split_channel_ranges(records, channel_range))
    result_2 = channel_split_naive(records, channel_range)
    assert (len(result) == len(result_2))
    for (i, _) in enumerate(result):
        np.testing.assert_array_equal(np.unique(result[i]['channel']), np.unique(result_2[i]['channel']))
        np.testing.assert_array_equal(result[i], result_2[i])