We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ff6f3b4 + 8c4ca57 commit ca2ed1fCopy full SHA for ca2ed1f
test/pyWrapper/test_full_system.py
@@ -162,7 +162,8 @@ def test_movie_in_planewave_in_box(tmp_path):
162
solver = FDTD(fn, path_to_exe=SEMBA_EXE, run_in_folder=tmp_path)
163
solver.run()
164
165
- h5file = solver.getSolvedProbeFilenames("electric_field_movie")[2]
+ movie_files = solver.getSolvedProbeFilenames("electric_field_movie")
166
+ h5file = [f for f in movie_files if f.endswith('.h5')][0]
167
with h5py.File(h5file, "r") as f:
168
time_key = list(f.keys())[0]
169
field_key = list(f.keys())[1]
0 commit comments