PythonSwitchHandler no longer found after upgrade to ` 13.0.1`

Hello all,

I’m unable to import the PythonSwitchHandler module after bumping Orekit from 12.2 to 13.0.1 using Conda.

The following two imports

from org.orekit.propagation.sampling import PythonOrekitStepHandler
from org.orekit.attitudes import PythonSwitchHandler

have different outcomes : the first succeeds while the second fails. Both were succesfull with 12.2. I’ve looked at the 12.2 and 13.0.1 release code on GitHub - CS-SI/Orekit: OREKIT is a free low level space dynamics library written in Java. Please visit our Gitlab instance for issues and contributions: https://gitlab.orekit.org but have been unable to locate either modules in both releases, though I am persuaded that I was able to find them in the past.

I may be taking the wrong angle to understand what’s going on here.

Thanks :slight_smile:

Hello @bbercovici,

Looks like the class got renamed to AttitudeSwitchHandler in version 13.0, so maybe try importing its python equivalent.

Best regards,
Emiliano

1 Like

That did the trick, thank you !