Orekit Python Wrapper 12.1.1 released


In some minutes the Python Wrapper for 12.1.1 will be on conda-forge. This contains the updates in the java orekit 12.1.1 as well as dev-version of Rugged as the 3.0 is not compatible with the hipparcus 3.1 libraries.

Note that although this is a minor release in java with maintained API, the Python version will have some small changes in the API as there has been some refactoring on the java side which then requires to do use the cast_ method to get the right methods exposed.

Please post issues on any anomalies or missing extension points, it is not always obvious how extensions best are exposed (for PythonXX classes).

Also to mention, there is quite some work ongoing on the alternative wrapping using jpype with much help of @yzokras and we aim for having 12.1.1 released in a couple of weeks. This will be installable also through pip.


Hi Petrus,

thanks a bunch for taking care of this.
I’m trying to update some 12.0 code to 12.1, and I’m getting a classic InvalidArgsError, like this: (<class ‘org.hipparchus.FieldElement’>, ‘add’, 1.0)

I should be able to work around these by casting as you said, however I’m surprised, (Calculus)FieldElement was not modified between Hipparchus 3.0 and 3.1, so why didn’t I get these problems before?


PS: kuddos to @yzokras and you for working on the jpype alternative

I’m getting a more worrying error (which may be linked), with my custom FieldAdditionalDerivativesProvider:

java.lang.RuntimeException: AttributeError
	at org.orekit.propagation.integration.PythonFieldAdditionalDerivativesProvider.combinedDerivatives(Native Method)
	at org.orekit.propagation.integration.FieldAbstractIntegratedPropagator$ConvertedSecondaryStateEquations.computeDerivatives(FieldAbstractIntegratedPropagator.java:881)
	at org.hipparchus.ode.FieldExpandableODE.computeDerivatives(FieldExpandableODE.java:143)
	at org.hipparchus.ode.AbstractFieldIntegrator.computeDerivatives(AbstractFieldIntegrator.java:273)
	at org.hipparchus.ode.AbstractFieldIntegrator.initIntegration(AbstractFieldIntegrator.java:217)
	at org.hipparchus.ode.nonstiff.EmbeddedRungeKuttaFieldIntegrator.initIntegration(EmbeddedRungeKuttaFieldIntegrator.java:242)
	at org.hipparchus.ode.nonstiff.EmbeddedRungeKuttaFieldIntegrator.integrate(EmbeddedRungeKuttaFieldIntegrator.java:252)
	at org.orekit.propagation.integration.FieldAbstractIntegratedPropagator.integrateDynamics(FieldAbstractIntegratedPropagator.java:488)
	at org.orekit.propagation.integration.FieldAbstractIntegratedPropagator.propagate(FieldAbstractIntegratedPropagator.java:447)
	at org.orekit.propagation.integration.FieldAbstractIntegratedPropagator.propagate(FieldAbstractIntegratedPropagator.java:410)

I can create a dedicated thread to discuss this particular issue.

Hi @Serrof , Yes please do open a separate thread, there seems to be no changes in the PythonFieldAdditionalDerivativesProvider or its direct superclasses/interfaces between 12.0 and 12.1. How is your Python code in the combinedDerivatives methods - maybe something else there which needs to be casted?

Ah another note, the subs currently is only type hints, the javadoc/docstrings text is missing. This is being investigated and will be added in a later build.