Hello everyone.
I’m implementing a custom PythonDragSensitive
model (let’s call it MyDragSensitive
), and when doing so, at construction, I pass the area and store it in the object to later use it in the computation of the acceleration. Everything up until here works just fine.
At a later stage I want to retrieve my custom object from the DragForce
instance that I get from my propagator. However, when doing so, what I obtain from getSpacecraft
is a generic PythonDragSensitive
object, which doesn’t allow me to access the area attribute of the MyDragSensitive
instance.
I tried casting it to MyDragSenstive
, but of course this uses the cast_
method from the interface, therefore it still returns a PythonDragSensitive
object. Any suggestion on what I can do?