lanl / SEPIA

Simulation-Enabled Prediction, Inference, and Analysis: physics-informed statistical learning.
Other
29 stars 6 forks source link

allow case with no t_sim (no calibration parameters) #49

Open natalieklein opened 2 years ago

natalieklein commented 2 years ago

Currently, setting up with x_sim/x_obs but no t_sim leads to errors in places that expect t_sim to be numeric. For example in

SepiaModel(data):

TypeError: ufunc 'isfinite' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe''

It's possible any access of t_sim might need to handle None values. I think a workaround is to set a constant fixed t_sim (sort of like dummy x).