Skip to content
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

Get measured data using active realizations #6188

Merged
merged 2 commits into from
Sep 27, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/ert/data/_measured_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
import numpy as np
import pandas as pd

from ert.realization_state import RealizationState

if TYPE_CHECKING:
import numpy.typing as npt

Expand Down Expand Up @@ -103,7 +105,7 @@ def _get_data(
group, obs = observations.get_dataset(key)
try:
response = ensemble.load_response(
group, tuple(range(self._facade.get_ensemble_size()))
group, tuple(ensemble.realization_list(RealizationState.HAS_DATA))
)
except KeyError:
raise ResponseError(f"No response loaded for observation key: {key}")
Expand Down
Loading