Clear EphemerisGenerators from Propagator

Hi,

In Orekit 10 after calling Propagator.setEphemerisMode() I could call Propagator.setSlaveMode() to stop storing all the intermediate states. How do I do the same in Orekit 11.0? Propagator.clearStepHandlers() doesn’t seem to clear the generators list.

Regards,
Evan

It’s a bug! There is currently no way to remove a generator once added, but their should be a way to do it.
A dedicated clearEphemerisGenerators method should be added.

created #879 for it: Add method to clean ephemeris generators from Propagator (#879) · Issues · Orekit / Orekit · GitLab

Hi,
is there any news on this impletation ? I would reallt like to have the possibility to remove the ephemerisGenerator of a numerical propagator. Right now it seems that the only option is to create a new propagator but it is messy when I am working with a constellation of satellites.

Thanks in advance,
Davide

1 Like

Hi @DDega,

Unfortunately, the issue is still opened and unadressed. For now i would say that the best way would be to use a PropagatorBuilder to build new equivalent NumericalPropagator without EphemerisGenerator.

Feel free to upvote the issue so that it can be prioritized over the others.

Cheers,
Vincent

Hi @Vincent,
Thanks I will upvote the issue.

Cheers

Hi all,

I’ve started this MR.
Does it look like it’s solving the issue?

Cheers,
Romain.

2 Likes

Thank you @Serrof !