nismod / smif

Simulation Modelling Integration Framework
http://www.itrc.org.uk
MIT License
22 stars 6 forks source link

Run a single model for a single timestep #404

Closed tomalrussell closed 4 years ago

tomalrussell commented 4 years ago

This will close #402 - work in progress.

The main thing here is the introduction of new smif CLI subcommands.

Run smif run <modelrun> --dry-run to see how to use these subcommands to step through running a model run.

Essentially there are three steps:

TODO:

codecov[bot] commented 4 years ago

Codecov Report

Merging #404 into master will decrease coverage by 0.05%. The diff coverage is 87.5%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #404      +/-   ##
==========================================
- Coverage   70.91%   70.85%   -0.06%     
==========================================
  Files          64       65       +1     
  Lines        5717     5758      +41     
  Branches      730      736       +6     
==========================================
+ Hits         4054     4080      +26     
- Misses       1559     1572      +13     
- Partials      104      106       +2
Flag Coverage Δ
#javascript 70.85% <87.5%> (-0.06%) :arrow_down:
#python 77.87% <87.5%> (-0.13%) :arrow_down:
Impacted Files Coverage Δ
src/smif/decision/decision.py 93.22% <ø> (ø) :arrow_up:
src/smif/cli/log.py 95.83% <100%> (ø) :arrow_up:
src/smif/data_layer/data_array.py 87.24% <100%> (+0.35%) :arrow_up:
src/smif/model/model.py 100% <100%> (ø) :arrow_up:
src/smif/data_layer/file/file_data_store.py 90.66% <100%> (+1%) :arrow_up:
src/smif/model/sector_model.py 100% <100%> (ø) :arrow_up:
src/smif/controller/build.py 77.27% <50%> (-0.67%) :arrow_down:
src/smif/controller/modelrun.py 88.95% <66.66%> (-3.05%) :arrow_down:
src/smif/controller/job/serial_job_scheduler.py 86.88% <80%> (-0.81%) :arrow_down:
src/smif/controller/execute_run.py 89.65% <91.66%> (ø)
... and 6 more

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 2c5e004...5c95c08. Read the comment docs.