-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Decision module may access available interventions #339
Conversation
Added two layers of set operations in the DecisionManager and DecisionModule Consider set of all interventions $I$ Set of planned interventions $P \subset I$ Available interventions $A = P \cap I$ Decisions at time t $D_t \subset A - D_{t-1}$
Codecov Report
@@ Coverage Diff @@
## develop #339 +/- ##
===========================================
+ Coverage 70.43% 70.57% +0.13%
===========================================
Files 59 59
Lines 5135 5179 +44
Branches 608 615 +7
===========================================
+ Hits 3617 3655 +38
- Misses 1426 1431 +5
- Partials 92 93 +1
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good 👍 - neat simplification of pre-specified planning, clear processing for the planned/decided/retired sets.
I've suggested a couple of minor changes in comments.
Could we use some of the PR comment/docstrings content to start a doc page (after 'Adding a Model') while this is fresh?
- Consider set of all interventions
- Set of planned interventions
- Available interventions
- Decisions at time t
Added two layers of set operations in the DecisionManager and DecisionModule and addresses issue #333. DecisionManager now updates pre-decision state (from the previous iteration) with new decisions and writes this to the store for current timestep and iteration.
This is a requirement of nismod/nismod2#82
Consider set of all interventions
Set of planned interventions
Available interventions
Decisions at time t
Todo:
This PR now also removes the pre-specified planning decision module, instead treating initial conditions and pre-specified planning as state which is all dealt with in the
get_and_save_decisions
method in the decision manager.