Skip to content

Commit

Permalink
Fix scaling in misfit preprocessor
Browse files Browse the repository at this point in the history
  • Loading branch information
larsevj committed Jan 22, 2025
1 parent 0b80ac1 commit 37b16f7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/ert/analysis/misfit_preprocessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def main(
scale_factors = np.ones(len(obs_errors))
nr_components = np.ones(len(obs_errors), dtype=int)

scaled_responses = responses * obs_errors.reshape(-1, 1)
scaled_responses = responses / obs_errors.reshape(-1, 1)

if len(obs_errors) <= 2:
# Either observations are not correlated, or only correlated
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,8 @@ FOPR 2015-06-03 00:00:00.000 0.020 0.100 5.657 0.566 0.084 0.110
FOPR 2015-06-13 00:00:00.000 0.020 0.100 5.657 0.566 0.084 0.110 Active
FOPR 2015-06-23 00:00:00.000 0.020 0.100 5.657 0.566 0.084 0.110 Active
WOPR_OP1_108 2012-12-15 00:00:00.000 0.300 0.075 1.000 0.075 0.257 0.099 Active
WOPR_OP1_144 2013-12-10 00:00:00.000 0.200 0.035 1.414 0.049 0.183 0.106 Active
WOPR_OP1_190 2015-03-15 00:00:00.000 0.015 0.010 1.414 0.014 0.042 0.041 Active
WOPR_OP1_144 2013-12-10 00:00:00.000 0.200 0.035 1.000 0.035 0.183 0.106 Active
WOPR_OP1_190 2015-03-15 00:00:00.000 0.015 0.010 1.000 0.010 0.042 0.041 Active
WOPR_OP1_36 2010-12-26 00:00:00.000 0.700 0.070 1.000 0.070 0.650 0.084 Active
WOPR_OP1_72 2011-12-21 00:00:00.000 0.500 0.050 1.000 0.050 0.405 0.170 Active
WOPR_OP1_9 2010-03-31 00:00:00.000 0.100 0.050 1.000 0.050 0.096 0.060 Active
Expand Down

0 comments on commit 37b16f7

Please sign in to comment.