Skip to content

Commit 9375199

Browse files
committed
better log message for large files
1 parent 5d3c463 commit 9375199

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

pypeec/main.py

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,9 @@ def run_mesher_file(file_geometry, file_voxel):
7373

7474
# load data
7575
try:
76-
LOGGER.info("load the input data")
76+
LOGGER.info("load the input data : start")
7777
data_geometry = scisave.load_config(file_geometry)
78+
LOGGER.info("load the input data : done")
7879
except Exception as ex:
7980
LOGGER.log_exception(ex)
8081
raise ex
@@ -84,8 +85,9 @@ def run_mesher_file(file_geometry, file_voxel):
8485

8586
# save results
8687
try:
87-
LOGGER.info("save the results")
88+
LOGGER.info("save the results : start")
8889
scisave.write_data(file_voxel, data_voxel)
90+
LOGGER.info("save the results : done")
8991
except Exception as ex:
9092
LOGGER.log_exception(ex)
9193
raise ex
@@ -172,9 +174,10 @@ def run_viewer_file(file_voxel, file_viewer, **kwargs):
172174

173175
# load data
174176
try:
175-
LOGGER.info("load the input data")
177+
LOGGER.info("load the input data : start")
176178
data_voxel = scisave.load_data(file_voxel)
177179
data_viewer = scisave.load_config(file_viewer)
180+
LOGGER.info("load the input data : done")
178181
except Exception as ex:
179182
LOGGER.log_exception(ex)
180183
raise ex
@@ -251,10 +254,11 @@ def run_solver_file(file_voxel, file_problem, file_tolerance, file_solution):
251254

252255
# load data
253256
try:
254-
LOGGER.info("load the input data")
257+
LOGGER.info("load the input data : start")
255258
data_voxel = scisave.load_data(file_voxel)
256259
data_problem = scisave.load_config(file_problem)
257260
data_tolerance = scisave.load_config(file_tolerance)
261+
LOGGER.info("load the input data : done")
258262
except Exception as ex:
259263
LOGGER.log_exception(ex)
260264
raise ex
@@ -264,8 +268,9 @@ def run_solver_file(file_voxel, file_problem, file_tolerance, file_solution):
264268

265269
# save results
266270
try:
267-
LOGGER.info("save the results")
271+
LOGGER.info("save the results : start")
268272
scisave.write_data(file_solution, data_solution)
273+
LOGGER.info("save the results : done")
269274
except Exception as ex:
270275
LOGGER.log_exception(ex)
271276
raise ex
@@ -359,9 +364,10 @@ def run_plotter_file(file_solution, file_plotter, **kwargs):
359364
# load data
360365
try:
361366
# load data
362-
LOGGER.info("load the input data")
367+
LOGGER.info("load the input data : start")
363368
data_solution = scisave.load_data(file_solution)
364369
data_plotter = scisave.load_config(file_plotter)
370+
LOGGER.info("load the input data : done")
365371
except Exception as ex:
366372
LOGGER.log_exception(ex)
367373
raise ex

0 commit comments

Comments
 (0)