Fix Parquet emitter issues for colony simulations#390
Open
katha815 wants to merge 7 commits intoCovertLab:masterfrom
Open
Fix Parquet emitter issues for colony simulations#390katha815 wants to merge 7 commits intoCovertLab:masterfrom
katha815 wants to merge 7 commits intoCovertLab:masterfrom
Conversation
thalassemia
requested changes
Feb 6, 2026
Contributor
thalassemia
left a comment
There was a problem hiding this comment.
Thanks for the PR! I left comments on all three changes. I'm very busy next week, but I'll try to get a PR up fixing issue 4 in the linked issue by next Friday.
katha815
commented
Feb 12, 2026
| import numpy as np | ||
| import orjson | ||
| import re | ||
| import ast |
katha815
commented
Feb 12, 2026
| metadata=metadata, | ||
| profile=config["profile"], | ||
| initial_global_time=config.get("start_time", 0.0), | ||
| emit_topology=config.get("emit_topology", True), |
Author
There was a problem hiding this comment.
Added missing options with respect to vivarium-core Engine class. Default values also imported from Engine class initiation.
Change serialization to preserve original value type.
Serialize metadata using serialize_value as recommended.
katha815
commented
Feb 12, 2026
Author
There was a problem hiding this comment.
Serialize metadata using default serializer.
thalassemia
approved these changes
Mar 4, 2026
Contributor
thalassemia
left a comment
There was a problem hiding this comment.
Sorry for the delay! This looks good to me. Thanks!
| initial_global_time=config.get("start_time", 0.0), | ||
| emit_topology=config.get("emit_topology", True), | ||
| emit_processes=config.get("emit_processes", False), | ||
| emit_step=config.get("emit_step", 1), |
Contributor
There was a problem hiding this comment.
Interesting, I did not know that the emit_step was configurable. Thanks for filling these in!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes several issues preventing Parquet emission when resuming colony simulations from saved JSON state files.
This PR is motivated by and discussed in detail in issue #389.
Changes
emit_configand other features of vivarium.core.engine will be included in engine process.Context
These issues occur when running
ecoli_engine_process.pywith"emitter": "parquet"under baseline colony simulations (no online emitter).