File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/python_routing_v02/troute/routing/fast_reach Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1- from libc.math cimport exp, isnan, NAN
1+ from libc.math cimport exp, isnan, NAN, fabs
22from libc.stdio cimport printf
33
44cpdef float simple_da_with_decay_py(
@@ -119,7 +119,7 @@ cdef float obs_persist_shift(
119119 """
120120
121121 cdef float da_weight, da_shift, da_weighted_shift
122- da_weight = exp(minutes_since_last_valid/- decay_coeff) # TODO: This could be pre-calculated knowing when obs finish relative to simulation time
122+ da_weight = exp(fabs( minutes_since_last_valid) /- decay_coeff) # TODO: This could be pre-calculated knowing when obs finish relative to simulation time
123123 # TODO: we need to be able to export these values to compute the 'Nudge'
124124 # One possibility would be to return only the nudge from this function...
125125 da_shift = last_valid_obs - model_val
You can’t perform that action at this time.
0 commit comments