Skip to content

Commit

Permalink
Merge pull request #236 from vivarium-collective/emit_config
Browse files Browse the repository at this point in the history
Add data key to breakdown documents if missing
  • Loading branch information
eagmon authored Feb 1, 2024
2 parents 32a88dd + e00bb6c commit 58f7a84
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## v1.6.2
* (#236) Add data key to breakdown documents if missing

## v1.6.1
* (#234) Allow Numpy arrays to be deeply nested in Store schemas
* (#233) Fix some bugs in `emitter.py`
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from setuptools import setup


VERSION = '1.6.1'
VERSION = '1.6.2'


if __name__ == '__main__':
Expand Down
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 58f7a84

Please sign in to comment.