-
Notifications
You must be signed in to change notification settings - Fork 110
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
Combine datasets & refactor observations to response configs #7563
Conversation
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.
Still have a bit to go through, so some comments as I go along
src/ert/shared/share/ert/workflows/jobs/internal-gui/scripts/gen_data_rft_export.py
Outdated
Show resolved
Hide resolved
2502dbf
to
5519238
Compare
5225777
to
01d711c
Compare
d909193
to
df528bf
Compare
@@ -39,8 +39,8 @@ def poly_template(monkeypatch): | |||
yield folder | |||
|
|||
|
|||
@pytest.mark.flaky(reruns=5) | |||
@pytest.mark.limit_memory("130 MB") | |||
# @pytest.mark.flaky(reruns=5) |
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 not need flaky marker anymore?
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.
Seems not AFAIK, at least it hasn't been failing with the marker commented out
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.
Then it should be removed and not commented out
3125a80
to
01b4537
Compare
closes #5065 |
052226f
to
45c2569
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! Really good job, thanks for your patience in a long review! I have some minor comments left, but just look at them and force push.
@@ -191,7 +191,6 @@ def _currentItemChanged( | |||
response_name = observation_ds.attrs["response"] | |||
response_ds = self._ensemble.load_responses( | |||
response_name, | |||
tuple(self._ensemble.get_realization_list_with_responses()), |
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.
Why was this removed?
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.
Passing in None
implicitly requests all realizations, so this was a bit redundant
src/ert/run_models/base_run_model.py
Outdated
run_context.ensemble.unify_parameters() | ||
run_context.ensemble.unify_responses() |
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.
Should these be in self.run_ensemble_evaluator instead?
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.
Seems to work so yes
src/ert/storage/local_storage.py
Outdated
@@ -272,6 +272,10 @@ def close(self) -> None: | |||
the storage. | |||
""" | |||
|
|||
for ens in self._ensembles.values(): | |||
ens.unify_responses() |
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.
Need to check that we have write
permission here
src/ert/storage/local_storage.py
Outdated
migrations = list(enumerate([to2, to3, to4, to5, to6], start=1)) | ||
print(f"Found storage with version: {version} at: {self.path}") |
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.
Remove print
@@ -574,3 +582,5 @@ def _migrate_gen_kw( | |||
} | |||
) | |||
ensemble.save_parameters(block.name, block.realization_index, dataset) | |||
|
|||
ensemble.unify_parameters() |
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.
Call this once at the end instead?
@pytest.mark.parametrize( | ||
"ert_version", | ||
[ | ||
"8.4.9", |
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.
A few new were just added, should also include them
@@ -39,8 +39,8 @@ def poly_template(monkeypatch): | |||
yield folder | |||
|
|||
|
|||
@pytest.mark.flaky(reruns=5) | |||
@pytest.mark.limit_memory("130 MB") | |||
# @pytest.mark.flaky(reruns=5) |
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.
Then it should be removed and not commented out
[datetime(2014, 9, 9)], | ||
[datetime(2014, 9, 9)], | ||
[datetime(2017, 9, 9)], | ||
[datetime(2014, 1, 22)], |
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 changed because of the ordering of keys?
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.
Not sure, it seems to work with the old times also, so I'm just reverting it back to what it was
@@ -95,6 +97,7 @@ def test_migrate_case(data, storage, enspath): | |||
bf.migrate_case(storage, enspath / "default", stack) | |||
|
|||
ensemble = storage.get_ensemble_by_name("default") | |||
ensemble.unify_parameters() |
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.
Technically these are not needed now?
b2a7932
to
e876662
Compare
e876662
to
dd60aeb
Compare
squash of #7495
Requires change in semeio: equinor/semeio#609