AttributeError: 'Propagator' object has no attribute 'setEphemerisMode'
Hi there,
I wonder if I could please get some advice and assistance please? I am struggling with the above titled error.
Traceback (most recent call last): File "C:\Users\Duncan\anaconda3\envs\orbit-determ310\Orbital_determination.py", line 338, in estimatedPropagator.setEphemerisMode() AttributeError: 'Propagator' object has no attribute 'setEphemerisMode'
from org.orekit.estimation.leastsquares import BatchLSEstimator
estimator = BatchLSEstimator(optimizer, propagatorBuilder)
estimator.setParametersConvergenceThreshold(estimator_convergence_thres)
estimator.setMaxIterations(estimator_max_iterations)
estimator.setMaxEvaluations(estimator_max_evaluations)
estimatedPropagatorArray = estimator.estimate()
estimatedPropagator = estimatedPropagatorArray[0]
estimatedInitialState = estimatedPropagator.getInitialState()
actualOdDate = estimatedInitialState.getDate()
estimatedPropagator.resetInitialState(estimatedInitialState)
estimatedPropagator.setEphemerisMode()
I am using Anaconda in Windows, the conda shell, I've installed Orekit via conda-forge, only available version I can access this way is 11.1.
I am running Windows 10 and have created a number of virtual environments, using python 3.8, 3.9 and 3.10. Java version in the envs are all version 8, e.g. 1.8.0_312 and so to is the fallback system version of Java.
I have setup the JCC_JDK and JAVA_HOME variables correctly, and manually, this is necessary as the auto bat file doesn't do it the conda way.
Commenting this particular line out I do get further issues, although the propagation it would seem works, retrieving the values fails
Propagating from 1 day before data collection To 1 week after orbit determination (for CPF generation)
estimatedPropagator.propagate(date_start, datetime_to_absolutedate(odDate).shiftedBy(7 * 86400.0))
bounded_propagator = estimatedPropagator.getGeneratedEphemeris()
fails like this
File "C:\Users\Duncan\anaconda3\envs\orbit-determ310\Orbital_determination.py", line 343, in bounded_propagator = estimatedPropagator.getGeneratedEphemeris()
AttributeError: 'Propagator' object has no attribute 'getGeneratedEphemeris'
Thank you