Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug in parallelized closed-loop plume tracking #193

Merged
merged 1 commit into from
Jun 18, 2024

Conversation

sibocw
Copy link
Contributor

@sibocw sibocw commented Jun 18, 2024

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

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.
@sibocw sibocw added the bug Something isn't working label Jun 18, 2024
@sibocw sibocw self-assigned this Jun 18, 2024
@sibocw sibocw merged commit bf1f305 into dev-v1.0.0-pre.4 Jun 18, 2024
8 checks passed
@sibocw sibocw deleted the fix-plume-tracking-wrapper branch June 18, 2024 09:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant