11from __future__ import annotations
22
3- import os
4-
53from libtbx .test_utils import approx_equal
64
75from dxtbx .imageset import ImageSetFactory
86
97
10- def test_multi_axis_goniometer (dials_regression ):
11- data_dir = os . path . join ( dials_regression , "image_examples " , "dials-190" )
8+ def test_multi_axis_goniometer (dials_data ):
9+ data_dir = dials_data ( "misc_regression " , pathlib = True )
1210
13- imgset = ImageSetFactory .new (os . path . join (data_dir , "whatev1_01_00001 .cbf" ))[0 ]
11+ imgset = ImageSetFactory .new (str (data_dir / "dials-190_01_00001 .cbf" ))[0 ]
1412 gonio = imgset .get_goniometer (0 )
1513 assert approx_equal (gonio .get_fixed_rotation (), (1 , 0 , 0 , 0 , 1 , 0 , 0 , 0 , 1 ))
1614 assert approx_equal (gonio .get_setting_rotation (), (1 , 0 , 0 , 0 , 1 , 0 , 0 , 0 , 1 ))
1715
18- imgset = ImageSetFactory .new (os . path . join (data_dir , "whatev1_02_00001 .cbf" ))[0 ]
16+ imgset = ImageSetFactory .new (str (data_dir / "dials-190_02_00001 .cbf" ))[0 ]
1917 gonio = imgset .get_goniometer (0 )
2018 assert approx_equal (gonio .get_fixed_rotation (), (1 , 0 , 0 , 0 , 1 , 0 , 0 , 0 , 1 ))
2119 assert approx_equal (
@@ -24,7 +22,7 @@ def test_multi_axis_goniometer(dials_regression):
2422 eps = 1e-4 ,
2523 )
2624
27- imgset = ImageSetFactory .new (os . path . join (data_dir , "whatev1_03_00001 .cbf" ))[0 ]
25+ imgset = ImageSetFactory .new (str (data_dir / "dials-190_03_00001 .cbf" ))[0 ]
2826 gonio = imgset .get_goniometer (0 )
2927 assert approx_equal (gonio .get_fixed_rotation (), (1 , 0 , 0 , 0 , 1 , 0 , 0 , 0 , 1 ))
3028 assert approx_equal (
0 commit comments