Skip to content

Commit

Permalink
Add data key to breakdown documents if missing
Browse files Browse the repository at this point in the history
  • Loading branch information
thalassemia committed Jan 29, 2024
1 parent 32a88dd commit 2b3bbdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vivarium/core/emitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -388,8 +388,8 @@ def write_emit(self, table: Any, emit_data: Dict[str, Any]) -> None:
assoc_path(d, path, datum)
d['assembly_id'] = assembly_id
d['experiment_id'] = experiment_id
d.setdefault('data', {})
if time:
d.setdefault('data', {})
d['data']['time'] = time
table.insert_one(d)

Expand Down

0 comments on commit 2b3bbdb

Please sign in to comment.