Skip to content

Commit

Permalink
fix file path
Browse files Browse the repository at this point in the history
  • Loading branch information
jonwright committed Dec 11, 2023
1 parent e4bb92d commit c5a8ac1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/eps_sig/test_eps_sig_NEW.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@
from ImageD11 import eps_sig_solver_NEW as ess
import ImageD11.parameters

def p(x):
return os.path.join( os.path.dirname( __file__ ), x )

def test_create(parfile='mypar.par', grainfile='CuAlBe_scan10.map'):
def test_create(parfile=p('mypar.par'), grainfile=p('CuAlBe_scan10.map')):
pars = ImageD11.parameters.read_par_file(parfile)
ubis = [ g.ubi for g in ImageD11.grain.read_grain_file( grainfile ) ]
unitcell = [pars.get('cell__' + a) for a in 'abc'] +\
Expand Down

0 comments on commit c5a8ac1

Please sign in to comment.