I am trying to setup a custom BatchSLObserver in Python, and trying to replicate the Orekit OD Tutorial.
If I setup a simple observer like this one, everything works fine :
class CustomObserver(PythonBatchLSObserver):
def evaluationPerformed(self, itCounts,
evCounts, orbits, orbParams, propParams,
measParams, provider, lspEval):
print(f"Iteration {itCounts}, Evaluation {evCounts}, Current solution {orbits[0]}")
But if i add an init class, it do not work anymore, but in a strange way :
class CustomObserver(PythonBatchLSObserver):
def __init__(self):
print('init')
def evaluationPerformed(self, itCounts,
evCounts, orbits, orbParams, propParams,
measParams, provider, lspEval):
print(f"Iteration {itCounts}, Evaluation {evCounts}, Current solution {orbits[0]}")
(this init method is very simple, but the goal would be to have the initial guess as input like in the tutorial)
The constructor is executed, but then nothing is displayed while the estimator runs, but without errors I looked at this thread : Usage of the init() method - Orekit development - Orekit, but the init() method instead of _ _ init _ _ does not do the trick as it doesn’t seem to be called.
If someone has a hint to what I am missing/done wrong