Skip to content

Commit

Permalink
Get measured data using active realizations
Browse files Browse the repository at this point in the history
This bug caused misfit_preprocessor to fail on cases
with failed realizations.
  • Loading branch information
dafeda committed Sep 26, 2023
1 parent 2e169d0 commit 0b8b74a
Showing 1 changed file with 3 additions and 1 deletion.
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 as e:
raise ResponseError(
Expand Down

0 comments on commit 0b8b74a

Please sign in to comment.