Skip to content
Snippets Groups Projects
Commit f6aad06b authored by Zineb Aly's avatar Zineb Aly
Browse files

add test for rec_stages masks

parent f3a6bd31
No related branches found
No related tags found
1 merge request!45Adapt best track root access
Pipeline #14281 passed with warnings
......@@ -183,6 +183,16 @@ class TestRecStagesMasks(unittest.TestCase):
assert masks[1][0] == all(rec_stages[1][0] == ak.Array(stages))
assert masks[0][1] == False
def test_mask_with_start_and_end_of_rec_stages(self):
rec_stages = self.tracks.rec_stages
stages = [1, 3, 5, 4]
masks = mask(rec_stages, start=1, end=4)
assert masks[0][0] == all(rec_stages[0][0] == ak.Array(stages))
assert masks[1][0] == all(rec_stages[1][0] == ak.Array(stages))
assert masks[0][1] == False
class TestUnique(unittest.TestCase):
def run_random_test_with_dtype(self, dtype):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment