@@ -35,7 +35,7 @@ def test_install_single_existing_marker(beam, test_context):
3535 assert np .isclose (pos_centre - line [name ].length / 2 , line .get_s_position (name ))
3636 assert isinstance (line [name ], xc .BlackAbsorber )
3737 tab = line .get_table ()
38- idx = tab .mask [[name ]][0 ]
38+ idx = tab .rows . indices [[name ]][0 ]
3939 assert xt .line ._is_aperture (line [idx - 1 ], line )
4040 assert xt .line ._is_aperture (line [idx + 1 ], line )
4141
@@ -47,14 +47,14 @@ def test_install_single_existing_marker(beam, test_context):
4747 tab = line .get_table ()
4848 existing_length = 0.12
4949 line [name ].length += existing_length
50- idx = tab .mask [[name ]][0 ]
50+ idx = tab .rows . indices [[name ]][0 ]
5151 while True :
5252 idx -= 1
5353 if tab .element_type [idx ].startswith ('Drift' ):
5454 assert line [idx ].length > existing_length / 2
5555 line [idx ].length -= existing_length / 2
5656 break
57- idx = tab .mask [[name ]][0 ]
57+ idx = tab .rows . indices [[name ]][0 ]
5858 while True :
5959 idx += 1
6060 if tab .element_type [idx ].startswith ('Drift' ):
@@ -68,7 +68,7 @@ def test_install_single_existing_marker(beam, test_context):
6868 assert np .isclose (pos_centre - line [name ].length / 2 , line .get_s_position (name ))
6969 assert isinstance (line [name ], xc .EverestCollimator )
7070 tab = line .get_table ()
71- idx = tab .mask [[name ]][0 ]
71+ idx = tab .rows . indices [[name ]][0 ]
7272 assert xt .line ._is_aperture (line [idx - 1 ], line )
7373 assert xt .line ._is_aperture (line [idx + 1 ], line )
7474
@@ -84,7 +84,7 @@ def test_install_single_existing_marker(beam, test_context):
8484 assert np .isclose (pos_centre - line [name ].length / 2 , line .get_s_position (name ))
8585 assert isinstance (line [name ], xc .EverestCrystal )
8686 tab = line .get_table ()
87- idx = tab .mask [[name ]][0 ]
87+ idx = tab .rows . indices [[name ]][0 ]
8888 assert xt .line ._is_aperture (line [idx - 1 ], line )
8989 assert xt .line ._is_aperture (line [idx + 1 ], line )
9090
@@ -121,7 +121,7 @@ def test_install_single_no_marker(beam, test_context):
121121 assert np .isclose (line .get_s_position (name ), 12.4 )
122122 assert isinstance (line [name ], xc .BlackAbsorber )
123123 tab = line .get_table ()
124- idx = tab .mask [[name ]][0 ]
124+ idx = tab .rows . indices [[name ]][0 ]
125125 assert xt .line ._is_aperture (line [idx - 1 ], line )
126126 assert isinstance (line [idx - 1 ], xt .LimitEllipse )
127127 assert np .isclose (line [idx - 1 ].a_squ , 0.16 )
0 commit comments