vivarium-collective / vivarium-core

Core Interface and Engine for Vivarium
https://vivarium-core.readthedocs.io/
Apache License 2.0
25 stars 2 forks source link

Support multiple emits for the same timestep #206

Closed U8NWXD closed 2 years ago

U8NWXD commented 2 years ago

This allows e.g. multiple parallel Engine instances to send emits to the same destination, e.g. the same database. So long as they use the same experiment IDs and have synchronized times, the emits will be merged upon retrieval.


By creating this pull request, I agree to the Contributor License Agreement, which is available in CLA.md at the top level of this repository.

U8NWXD commented 2 years ago

In conversation with @eagmon, decided to remove Engine.complete() and instead expect users to set force_complete=True when running Engine.run_for() at the end of the simulation