ert icon indicating copy to clipboard operation
ert copied to clipboard

Experiments without ensembles are not persisted

Open eivindjahren opened this issue 1 year ago • 6 comments

with open_storage(path, mode="w") as storage:
    experiment = storage.create_experiment([]).id

with open_storage(path, mode="r") as storage:
    _ = storage.get_experiment(experiment)

This crashes with KeyError as experiments that do not have any ensembles are not persisted.

eivindjahren avatar Jan 29 '24 14:01 eivindjahren

Just since I spent at least 42 seconds looking into this issue... my guess is that this is caused by line 166 in local_experiment.py

image

My 2 cents

olvemaudal avatar Jan 30 '24 14:01 olvemaudal

This issue is was not resolved by #7129 . The test case in the original bug report still fails.

eivindjahren avatar Feb 13 '24 08:02 eivindjahren

Please delete the following workaround in the tests when closing this issue: https://github.com/equinor/ert/blob/55a5e12d72c9a25264b2a0d9c50a19554b528a95/tests/unit_tests/storage/test_local_storage.py#L322-L325

eivindjahren avatar Feb 13 '24 08:02 eivindjahren

Removed the bug label as this is arguably expected behavior, as all experiments should have an ensemble. Is it possible to reproduce this though the gui for example?

oyvindeide avatar Mar 11 '24 11:03 oyvindeide

I guess this will become possible through the Gui with the new "experiment manager"?

eivindjahren avatar Mar 11 '24 12:03 eivindjahren