11from __future__ import annotations
22
33import math
4- import os
54
65import pytest
76
87from scitbx import matrix
98
109
1110class RayPredictor :
12- def __init__ (self , dials_regression ):
11+ def __init__ (self , dials_data ):
1312 import dxtbx
1413 from iotbx .xds import integrate_hkl , xparm
1514 from rstbx .cftbx .coordinate_frame_converter import coordinate_frame_converter
@@ -21,10 +20,9 @@ def __init__(self, dials_regression):
2120 from dials .util import ioutil
2221
2322 # The XDS files to read from
24- integrate_filename = os .path .join (
25- dials_regression , "data" , "sim_mx" , "INTEGRATE.HKL"
26- )
27- gxparm_filename = os .path .join (dials_regression , "data" , "sim_mx" , "GXPARM.XDS" )
23+ data_dir = dials_data ("misc_regression" , pathlib = True )
24+ integrate_filename = str (data_dir / "sim_mx-INTEGRATE.HKL" )
25+ gxparm_filename = str (data_dir / "sim_mx-GXPARM.XDS" )
2826
2927 # Read the XDS files
3028 self .integrate_handle = integrate_hkl .reader ()
@@ -94,8 +92,8 @@ def __init__(self, dials_regression):
9492
9593
9694@pytest .fixture (scope = "session" )
97- def raypredictor (dials_regression ):
98- return RayPredictor (dials_regression )
95+ def raypredictor (dials_data ):
96+ return RayPredictor (dials_data )
9997
10098
10199def test_miller_index_set (raypredictor ):
0 commit comments