(Field)AdaptableInterval

Hi,

I’m trying to switch from 11.3 to 12.0 on a Python code using custom event detectors.
The obstacle is the AdaptableInterval. When I look at the docstring of PythonAbstractDetector, the constructor does not take an AdaptableInterval as argument, but a float. I know these guys are auto generated and can be erroneous, but I’m getting this error:
orekit.InvalidArgsError:

‘(<classxxx.SingularityDetector’>, ‘init’, (<ConstantAdaptableInterval: org.orekit.propagation.events.PythonAdaptableInterval@5c10d03c>, 1000.0, 100, <ResetDerivativesOnEvent: org.orekit.propagation.events.handlers.PythonEventHandler@b298e60>))

Should I switch to PythonEventDetector?

Cheers,
Romain.

Hi Romain,

Thanks for finding this. This is a missing new constructor in the PythonAbstractDetector that was added in 12.0, I will add it.

Hi Petrus,

No problem. Thanks a lot for taking care of the wrapper.

Cheers,
Romain.

v12.0.1 release 3 will be available on conda-forge when the automated builds are done, that (should) include the additional constructor.

2 Likes