File tree Expand file tree Collapse file tree
tests/plate_simulation/runtest Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77# (see LICENSE file at the root of this source code package). '
88# '
99# '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
10-
10+ from io import BytesIO
1111
1212from geoh5py import Workspace
1313from geoh5py .groups import SimPEGGroup
1414from geoh5py .ui_json import InputFile
15+ from pandas import read_excel
1516
1617from simpeg_drivers import assets_path
1718from simpeg_drivers .plate_simulation .options import PlateSimulationOptions
@@ -103,3 +104,11 @@ def test_sweep(tmp_path):
103104
104105 n = len (list (workdir .glob ("*.geoh5" )))
105106 assert n == 6
107+
108+ # Check that the summary file was created and has the expected number of rows
109+ with Workspace (tmp_path / "test.geoh5" ) as ws :
110+ file_data = ws .get_entity ("summary.xlsx" )[0 ]
111+ blob = BytesIO (file_data .file_bytes )
112+ xls = read_excel (blob )
113+
114+ assert len (xls ) == 6
You can’t perform that action at this time.
0 commit comments