Skip to content

Commit

Permalink
fix single_opt method
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-springer committed Nov 16, 2023
1 parent 576d158 commit de0740a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rdtools/normalization.py
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ def _rmse(fact):

guess = np.percentile(irrad.dropna(), 90) / \
np.percentile(irrad_sim.dropna(), 90)
min_result = minimize(_rmse, guess, (filt), method='Nelder-Mead')
min_result = minimize(_rmse, guess, method='Nelder-Mead')
factor = min_result['x'][0]

out_irrad = factor * irrad_sim
Expand Down

0 comments on commit de0740a

Please sign in to comment.