Skip to content

Commit

Permalink
Print statements for local storage
Browse files Browse the repository at this point in the history
  • Loading branch information
Blunde1 committed Feb 14, 2024
1 parent 8cf1070 commit 0abbc7a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ert/analysis/_es_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@ def _create_temporary_parameter_storage(
iens_active_index: npt.NDArray[np.int_],
param_group: str,
) -> TempStorage:
print("Creating temporary storage")
temp_storage = TempStorage()
t_genkw = 0.0
t_surface = 0.0
Expand Down Expand Up @@ -286,6 +287,7 @@ def _create_temporary_parameter_storage(
f"_create_temporary_parameter_storage() time_used gen_kw={t_genkw:.4f}s, \
surface={t_surface:.4f}s, field={t_field:.4f}s"
)
print("Finished creating temporary storage")
return temp_storage


Expand Down Expand Up @@ -866,6 +868,7 @@ def analysis_ES(
)

# Open a file in binary-write mode
print("Dumping LASSO Kalman gain")
with open("K_lasso_full.pkl", "wb") as file:
# Use pickle to dump the K_lasso_full matrix into the file
pickle.dump(K_lasso_dict, file)
Expand Down

0 comments on commit 0abbc7a

Please sign in to comment.