Skip to content

Commit

Permalink
Enable automatic nan filtering for RMSE #79
Browse files Browse the repository at this point in the history
  • Loading branch information
thouska committed Jan 14, 2019
1 parent dd2b1e8 commit 281879e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spotpy/objectivefunctions.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ def mse(evaluation, simulation):

if len(evaluation) == len(simulation):
obs, sim = np.array(evaluation), np.array(simulation)
mse = np.mean((obs - sim)**2)
mse = np.nanmean((obs - sim)**2)
return mse
else:
logging.warning("evaluation and simulation lists does not have the same length.")
Expand Down

0 comments on commit 281879e

Please sign in to comment.