-
Notifications
You must be signed in to change notification settings - Fork 104
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
storage can create ensemble with state HAS_DATA when no data present #7046
Comments
@eivindjahren are the tests above part of a branch about to be merged - or should I add similar tests to this PR? |
@frode-aarstad You can just uncomment the lines marked with issue 7046 here: ert/tests/unit_tests/storage/test_local_storage.py Lines 385 to 389 in 4743427
|
The issue here is if we should allow construction of |
Can the bug be triggered by putting |
It might be that all we need is to update the documentation of |
Storage is quite inconsistent with what it considers "HAS_DATA". Usually, a forall quantifier in front of an empty collection is considered True (see https://en.wikipedia.org/wiki/Vacuous_truth). That is why However, when This is also inconsistent with all(
path / f"{parameter}.nc").exists()
for parameter in self.experiment.parameter_configuration
) |
I suggest we do the following: #7150 which enforces that SummaryConfig must have keys and changes the name and documentation of the existence checks in local_ensemble. Also, I think the comment in |
I think the proposed solution of forcing SummaryConfig to have keys is good and leads to the proposed simplifications to local_ensemble |
After looking a bit closer at it, that solution seems to not be possible as it would break with current behavior that ert/src/ert/config/observations.py Lines 110 to 111 in 1ff65a5
|
It seems like this issue is less problematic than first anticipated so we can lower the severity of the bug at least. |
The following fails:
The same issue reappears when you do create_ensemble with prior:
This situation can be provoked from a config by setting
and then not having any summary observations or history observations.
The text was updated successfully, but these errors were encountered: