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
We don't have a precise specification for custom data. This is a problem if we want to be able to merge and split time series--what do you do with custom data?
I propose we include the following specification for custom fields in the data section:
If the data is arrayed, each value for an associated custom key must either be an array of the length of the number of timepoints, or a single value that is assumed to apply to every timepoint.
If the data is not arrayed, there are no restrictions on values
When data is split by time, the custom values that are arrays are split at the same indices
When data is merged, arrays are concatenated, constant values are collapsed if they are the same, and are duplicated to every timepoint if they differ. If keys are present for some timepoints and not others, the missing timepoints will be filled in by JSON null.
This way the custom JSON data behaves the same way as the time series numeric data. (In particular, like the origin data where you can set a single origin for an arrayed time series.)
The text was updated successfully, but these errors were encountered:
I really like this idea. For now the Python parser just drops any custom fields as soon as the file is read, leaving it to other more specialized readers to handle the custom fields.
Being able to merge them in a way that makes sense would make the readers more useful for labs, and would mean they wouldn't have to specialize the readers at all, they could just deal with the custom fields they are interested in once the object is in memory.
We don't have a precise specification for custom data. This is a problem if we want to be able to merge and split time series--what do you do with custom data?
I propose we include the following specification for custom fields in the data section:
This way the custom JSON data behaves the same way as the time series numeric data. (In particular, like the origin data where you can set a single origin for an arrayed time series.)
The text was updated successfully, but these errors were encountered: