Experiments without ensembles are not persisted
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.
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
My 2 cents
This issue is was not resolved by #7129 . The test case in the original bug report still fails.
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
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?
I guess this will become possible through the Gui with the new "experiment manager"?