Skip to content

Commit

Permalink
Debugging observation names-1
Browse files Browse the repository at this point in the history
  • Loading branch information
Blunde1 committed Feb 13, 2024
1 parent 0fefabe commit 0101758
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ert/analysis/_es_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -677,6 +677,7 @@ def analysis_ES(
selected_observations=update_step.observation_config(),
)
print(f"Number of observation names: {len(observation_names)}")
print(observation_names)

observation_values_reshaped = observation_values[
:, np.newaxis
Expand All @@ -686,6 +687,7 @@ def analysis_ES(
# Assuming observation_values_reshaped and Y_noisy are defined
innovations = observation_values_reshaped - Y_noisy
average_innovations = np.mean(innovations, axis=1) # Take average over rows
print(f"Innovations has shape {average_innovations.shape}")

# Assuming observation_names is defined and matches the length of average_innovations
innovations_xr = xr.DataArray(
Expand Down

0 comments on commit 0101758

Please sign in to comment.