Skip to content

Commit

Permalink
Ensure correct array type with ES
Browse files Browse the repository at this point in the history
Important to make sure fields that should be float32 never get
cast to float64, which would waste memory.
  • Loading branch information
dafeda authored Mar 21, 2024
1 parent a71a6df commit 64fe249
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/ert/analysis/_es_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -524,11 +524,9 @@ def adaptive_localization_progress_callback(
)

else:
# The batch of parameters
X_local = temp_storage[param_group]

# Update manually using global transition matrix T
temp_storage[param_group] = X_local @ T
temp_storage[param_group] = temp_storage[param_group] @ T.astype(
temp_storage[param_group].dtype
)

log_msg = f"Storing data for {param_group}.."
_logger.info(log_msg)
Expand Down

0 comments on commit 64fe249

Please sign in to comment.