I'm implementing a formula that takes a very long time to run. As a consequence, I don't want it to be run multiple times in the uncertainty wrapper.
I tried to prevent this by putting all of the FormulaParameter arguments into the isconstant input, but this breaks the uncertainty_wrapper package, I get a:
AttributeError: 'tuple' object has no attribute 'ndim'
I'm implementing a formula that takes a very long time to run. As a consequence, I don't want it to be run multiple times in the uncertainty wrapper. I tried to prevent this by putting all of the
FormulaParameter
arguments into theisconstant
input, but this breaks the uncertainty_wrapper package, I get a:at this line: https://github.com/SunPower/UncertaintyWrapper/blob/master/uncertainty_wrapper/core.py#L239 (my formula returns a
tuple
of size 2, not a numpy array). But no matter what I do it seems that the jacobian function will be run, which will run my formula multiple times.What would be the (best) way to turn off the uncertainty wrapper for this formula?