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.
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
to
test_write_read_single_spike
intest_neomatlabio.py
.Related to #633