NeLy-EPFL / flygym

Simulating embodied sensorimotor control with NeuroMechFly v2
https://neuromechfly.org/
Apache License 2.0
31 stars 7 forks source link

Fix bug in parallelized closed-loop plume tracking #193

Closed sibocw closed 5 months ago

sibocw commented 5 months ago

Description

At some point we made the run_simulation function return the Simulation object to facilitate testing. However this broke the parallel execution of the code because parallelization (at least via joblib) pickles the returned object in the reduce step. However, the Simulation object is not pickle-able. We now drop the returned value in the wrapper that encapsulates run_simulation.

Does this address any currently open issues?

N/A