-
Notifications
You must be signed in to change notification settings - Fork 29
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
Make ahmanalysis not use libres facade #686
Make ahmanalysis not use libres facade #686
Conversation
3bd0524
to
de659f8
Compare
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, have some comments
...workflows/ahm_analysis/snapshots/test_integration/test_ahmanalysis_run_deactivated_obs/ks_df
Outdated
Show resolved
Hide resolved
bd526dc
to
05b1860
Compare
05b1860
to
69a6795
Compare
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.
LGTM! But can you also add an integration test where this runs from the ert
cli
?
d265001
to
4ef555f
Compare
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.
LGTM! Some minor comments, also the tests are failing, but looks like some uv problem?
|
||
obs_keys = list(self.facade.get_observations().obs_vectors.keys()) | ||
key_map = _group_observations(self.facade, obs_keys, group_by) | ||
if not workflow_args: |
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.
Does this not default to empty list? If so, you can just have the else
and skip this.
prior_name, | ||
target_name, | ||
prior_experiment = prior_ensemble.experiment | ||
assert prior_ensemble is not None |
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.
This should be above the previous line, and should give a better error message if we dont find an ensemble in storage.
@@ -51,7 +52,7 @@ def test_ahmanalysis_run(snake_oil_facade): | |||
ks_df = pd.read_csv(output_dir / "ks.csv") | |||
for keys in ks_df["Parameters"].tolist(): | |||
assert keys in parameters | |||
assert ks_df.columns[1:].tolist() == group_obs | |||
assert set(ks_df.columns[1:].tolist()) == set(group_obs) |
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.
Is this needed?
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.
The previous order is a bit arbitrary, and the All-
usually come last in the dataframe as a consequence, I would opt for changing the test to be order agnostic rather than changing the order, though changing the order would be possible by sorting explicitly in make_obs_groups
and then just putting those in there. Having the All*
rows come last seems more sensible than a global sort to me at the moment.
4ef555f
to
44fcce3
Compare
44fcce3
to
3452b08
Compare
3452b08
to
5e2ab14
Compare
5e2ab14
to
1ef1f6e
Compare
Resolves #685