-
-
Notifications
You must be signed in to change notification settings - Fork 120
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
This PR fixes case in SS of baseline=True and baseline_spending=True #786
Conversation
Codecov Report
@@ Coverage Diff @@
## master #786 +/- ##
==========================================
- Coverage 86.36% 86.32% -0.04%
==========================================
Files 40 40
Lines 6314 6318 +4
==========================================
+ Hits 5453 5454 +1
- Misses 861 864 +3
Flags with carried forward coverage won't be shown. Click here to find out more.
|
@jdebacker. In Issue #782, you note that
This PR is an alternative to the The approach of this PR allows the I am almost done running the full set of unit tests on my machine for this PR. But I am happy to go the |
@rickecon writes:
One can do this assert approach by adding the following below line 35 in
If this is done, no other changes to the code should be necessary. Though perhaps a better description of this issue with the meta data for the |
I ran the full set of CI tests locally on my machine and had two failures in the
The change in the most recent commit to The second failure was more tricky. I tried all the permutations of |
@jdebacker. The question in this PR is whether to allow a user to specify |
@rickecon FYI, all SS tests pass for me on master branch:
|
@jdebacker. This PR is almost ready for review. The errors that I was finding in
I re-ran the entire set of CI tests locally last night and got the following output, with only two errors in
The two tests failing in I think the current tests in the master branch which are all passing are not testing what we expect. They were cheating by setting baseline_dir = os.path.join(tmpdir, 'OUTPUT_BASELINE')
if baseline is False:
p_base = Specifications(
output_base=baseline_dir,
baseline_dir=baseline_dir,
baseline=True,
num_workers=NUM_WORKERS)
p_base.update_specifications(param_updates)
p_base.baseline_spending = False
base_ss_outputs = SS.run_SS(p_base, client=dask_client) I will work on making this change. Then this PR will be ready. |
@jdebacker. This PR is now ready for your review. I have changed its "Draft" status to "Ready for review".
|
Excellent - thanks @rickecon! |
This PR solves a problem that was identified in Issue #782. The case when
baseline=True
andbaseline_spending=True
was not correctly treated in the code and was not tested anywhere in the unit testing files.This PR will be ready for review once I confirm that the TPI works correctly in this case and I have included tests for this case.
cc: @jdebacker