Skip to content

Commit ca2ed1f

Browse files
committed
Merge remote-tracking branch 'origin/dev' into feature/sgbc
2 parents ff6f3b4 + 8c4ca57 commit ca2ed1f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/pyWrapper/test_full_system.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,8 @@ def test_movie_in_planewave_in_box(tmp_path):
162162
solver = FDTD(fn, path_to_exe=SEMBA_EXE, run_in_folder=tmp_path)
163163
solver.run()
164164

165-
h5file = solver.getSolvedProbeFilenames("electric_field_movie")[2]
165+
movie_files = solver.getSolvedProbeFilenames("electric_field_movie")
166+
h5file = [f for f in movie_files if f.endswith('.h5')][0]
166167
with h5py.File(h5file, "r") as f:
167168
time_key = list(f.keys())[0]
168169
field_key = list(f.keys())[1]

0 commit comments

Comments
 (0)