Orbit objects cannot be unpickled #369
Closed
Comments
Confirmed it's a pickle issue:
|
astrojuanlu
added a commit
to astrojuanlu/poliastro
that referenced
this issue
May 11, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
(Reported by Joan Fort Alsina https://groups.io/g/poliastro-dev/message/47)
When attempting to do a propagation inside a
multiprocessing.Pool
, a weirdRecursionError
is returned. For example, with this script:This is the failure:
Debugging this is hard. By adding some dirty lines to
Orbit
:I figured out that these are the properties being retrieved:
Which leads to this documentation https://docs.python.org/3/library/pickle.html#pickling-class-instances
Being able to run several propagations in parallel using
multiprocessing
is essential, since it allows the users to easily analize satellite constellations.I will try to fix this by making
Orbit
objects pickeable.Addresses #<put issue number here>
The text was updated successfully, but these errors were encountered: