Skip to content

Commit 5c5505e

Browse files
committed
light updates to evaluation code
1 parent 30cba4f commit 5c5505e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pynumdiff/utils/evaluate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def rmse(dxdt_truth, dxdt_hat, padding=0):
115115
s = slice(padding, len(dxdt_hat)-padding) # slice out data we want to measure
116116
N = s.stop - s.start
117117

118-
return np.linalg.norm(dxdt_hat[s] - dxdt_truth[s]) / np.sqrt(N) if dxdt_truth is not None else None
118+
return np.linalg.norm(dxdt_truth[s] - dxdt_hat[s]) / np.sqrt(N)
119119

120120

121121
def error_correlation(dxdt_truth, dxdt_hat, padding=0):

0 commit comments

Comments
 (0)