You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, when we emit data that has a unit in the state hierarchy and format it as a timeseries, we put the unit into the key and strip the units from the value. For example, we might get:
Currently, when we emit data that has a unit in the state hierarchy and format it as a timeseries, we put the unit into the key and strip the units from the value. For example, we might get:
This is not ideal. Instead, our plotting functions should know how to handle
Quantity
objects.Here's where we do the unit conversion:
vivarium-core/vivarium/library/dict_utils.py
Lines 264 to 268 in 6836411
And here's a trace of the calls in
emitter.py
that lead to the code above:vivarium.library.dict_utils.value_in_embedded_dict()
vivarium.core.emitter.timeseries_from_data()
vivarium.core.emitter.Emitter.get_timeseries()
Note that addressing this will probably be a breaking API change since doing so will change our output format.
The text was updated successfully, but these errors were encountered: