G-Node / nix

Neuroscience information exchange format
https://readthedocs.org/projects/nixio/
Other
66 stars 36 forks source link

Dimensions with linking for ticks and labels #824

Open achilleas-k opened 4 years ago

achilleas-k commented 4 years ago

Dimensions can link to either a DataArray or a DataFrame for ticks or labels (depending on Dimension type).

DataArray links

The link object should hold a series of indices that indicate a single vector to represent the ticks or labels. The dimension which holds the relevant values should be indicated by -1.

DataFrame links

The link object should hold a single index which defines the Column to represent the ticks or labels.


This replaces AliasRangeDimension, which becomes a RangeDimension that links to the DataArray that holds it, and DataFrameDimension, which becomes a SetDimension (or any dimension now) that links to a DataFrame.