NeuralEnsemble / python-neo

Neo is a package for representing electrophysiology data in Python, together with support for reading a wide range of neurophysiology file formats
http://neo.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
322 stars 248 forks source link

Support Quantity-like annotations when saving/loading .mat files #852

Open mdenker opened 4 years ago

mdenker commented 4 years ago

Currently, the neomatlabio can save annotations of objects. If these annotations are a quantities object, they loose their units and only a classic np.array is retained. In contrast, object properties (e.g., .t_start) are saved as two annotations containing value and unit of a quantities object. This behavior of properties should be mirrored for annotations that are quantities objects.

To reproduce and test, add an annotation

yop=[3, 4, 5] * pq.ms

to test_write_read_single_spike in test_neomatlabio.py.

Related to #633

samuelgarcia commented 4 years ago

The miletones of 0.10.0 is a good choice :wink: