Skip to content

Commit

Permalink
Add print of obs ID in localisation setup
Browse files Browse the repository at this point in the history
  • Loading branch information
oddvarlia committed Oct 11, 2023
1 parent 65b72b6 commit 2aca3a7
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions semeio/workflows/localisation/local_script_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,8 @@ def apply_decay(
f"The only allowed methods for function 'apply_decay' are: {_valid_methods}"
)

scaling_vector = np.zeros(data_size, dtype=np.float32)
# scaling_vector = np.zeros(data_size, dtype=np.float32)
scaling_vector = np.zeros(data_size, dtype=np.float64)
for index in range(data_size):
scaling_vector[index] = decay_obj(index)
row_scaling.assign_vector(scaling_vector)
Expand Down Expand Up @@ -238,7 +239,8 @@ def apply_from_file(row_scaling, data_size, grid, filename, param_name, log_leve
file,
param_name,
strict=True,
ecl_type=EclDataType.ECL_FLOAT,
# ecl_type=EclDataType.ECL_FLOAT,
ecl_type=EclDataType.ECL_DOUBLE,
)
for index in range(data_size):
global_index = grid.global_index(active_index=index)
Expand Down Expand Up @@ -702,6 +704,12 @@ def add_ministeps(

# Setup observation group
update_step["observations"] = obs_list
debug_print(
f"Observations in {ministep_name}: {obs_list} ",
LogLevel.LEVEL3,
user_config.log_level,
)

update_steps.append(update_step)

return update_steps
Expand Down

0 comments on commit 2aca3a7

Please sign in to comment.