Commit 09dac7d2 authored by Médéric Boquien's avatar Médéric Boquien

Do display the model counter twice when the numbers of models is a multiple of...

Do display the model counter twice when the numbers of models is a multiple of the printing frequency.
parent 4860266f
......@@ -104,7 +104,8 @@ class PdfAnalysis(AnalysisModule):
init_worker_sed, conf['cores'])
# Print the final value as it may not otherwise be printed
counter.pprint(len(params.blocks[iblock]))
if counter.global_counter.value % 250 != 0:
counter.pprint(len(params.blocks[iblock]))
return models
......
......@@ -82,7 +82,8 @@ class SaveFluxes(AnalysisModule):
init_worker_fluxes, conf['cores'])
# Print the final value as it may not otherwise be printed
counter.pprint(len(params.blocks[iblock]))
if counter.global_counter.value % 250 != 0:
counter.pprint(len(params.blocks[iblock]))
print("Saving the models ....")
models.save('models-block-{}'.format(iblock))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment