GithubHelp home page GithubHelp logo

Comments (10)

frode-aarstad avatar frode-aarstad commented on June 12, 2024

@eivindjahren are the tests above part of a branch about to be merged - or should I add similar tests to this PR?

from ert.

eivindjahren avatar eivindjahren commented on June 12, 2024

@frode-aarstad You can just uncomment the lines marked with issue 7046 here:

# https://github.com/equinor/ert/issues/7046
# assert (
# ensemble.get_ensemble_state()
# == [RealizationStorageState.UNDEFINED] * ensemble_size
# )

from ert.

frode-aarstad avatar frode-aarstad commented on June 12, 2024

The issue here is if we should allow construction of SummaryConfig with no keys. When reading summary and this is the case we throw an exception.

(https://github.com/equinor/ert/blob/6895be5119c0769fdd5899f75d6be571459df206/src/ert/config/summary_config.py)

from ert.

eivindjahren avatar eivindjahren commented on June 12, 2024

The issue here is if we should allow construction of SummaryConfig with no keys. When reading summary and this is the case we throw an exception.

(https://github.com/equinor/ert/blob/6895be5119c0769fdd5899f75d6be571459df206/src/ert/config/summary_config.py)

Can the bug be triggered by putting SUMMARY "" in the config file?

from ert.

eivindjahren avatar eivindjahren commented on June 12, 2024

It might be that all we need is to update the documentation of RealizationStorageState. I'll have a check.

from ert.

eivindjahren avatar eivindjahren commented on June 12, 2024

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 all([]) == True.

However, when LocalEnsemble.response_configuration is empty, _all_responses_exist_for_realization returns False, but if LocalEnsemble.response_configuration contains an SummaryConfig without keys, you get True.

This is also inconsistent with _get_parameter_mask which uses

all(
     path / f"{parameter}.nc").exists()
     for parameter in self.experiment.parameter_configuration
)

from ert.

eivindjahren avatar eivindjahren commented on June 12, 2024

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 _filter_response_configuration is incorrect as it dis produce a file, but that file actually ended up the triggering the bug #6974 so now that is a forward model failure. So now that SummaryConfig cannot have empty keys, I removed _filter_response_configuration as it does nothing.

from ert.

frode-aarstad avatar frode-aarstad commented on June 12, 2024

I think the proposed solution of forcing SummaryConfig to have keys is good and leads to the proposed simplifications to local_ensemble

from ert.

eivindjahren avatar eivindjahren commented on June 12, 2024

After looking a bit closer at it, that solution seems to not be possible as it would break with current behavior that
summary keys from HISTORY_OBSERVATION are added to the summary config if missing.

if summary_key not in response_config.keys:
response_config.keys.append(summary_key)

from ert.

eivindjahren avatar eivindjahren commented on June 12, 2024

It seems like this issue is less problematic than first anticipated so we can lower the severity of the bug at least.

from ert.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.