Skip to content

Commit

Permalink
Set working directory in TokaMaker tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hansec committed Nov 22, 2023
1 parent 3dca39b commit 1e1557b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/tests/physics/test_TokaMaker.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@


def mp_run(target,args,timeout=30):
os.chdir(test_dir)
mp_q = multiprocessing.Queue()
p = multiprocessing.Process(target=target, args=args + (mp_q,))
p.start()
Expand Down Expand Up @@ -313,7 +314,6 @@ def create_mesh():
coil_dict = gs_mesh.get_coils()
cond_dict = gs_mesh.get_conductors()
save_gs_mesh(mesh_pts,mesh_lc,mesh_reg,coil_dict,cond_dict,'ITER_mesh.h5')
print(os.getcwd(),os.listdir())
if not os.path.exists('ITER_mesh.h5'):
try:
create_mesh()
Expand Down Expand Up @@ -419,9 +419,8 @@ def validate_ITER(results,dict_exp):


# Test runners for ITER test cases
@pytest.mark.parametrize("order", (2,3))#3,4))
@pytest.mark.parametrize("order", (2,3))#,4))
def test_ITER(order):
print(os.getcwd(),os.listdir())
exp_dict = {
'Ip': 15599996.700479196,
'Ip_centroid': [6.20274133, 0.5296048],
Expand Down

0 comments on commit 1e1557b

Please sign in to comment.