ETHZ-TEC / RocketLogger

Official development repository of the RocketLogger project.
https://github.com/ETHZ-TEC/RocketLogger/wiki
BSD 3-Clause "New" or "Revised" License
14 stars 4 forks source link

Shape-1 fields in NumPy dtypes deprecated #12

Closed lsigrist closed 3 years ago

lsigrist commented 3 years ago

Recent NumPy 1.17.0 raises FutureWarning on import:

data.py:454: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated;
in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.

See also: https://docs.scipy.org/doc/numpy/release.html#shape-1-fields-in-dtypes-won-t-be-collapsed-to-scalars-in-a-future-version

Relates to: https://gitlab.ethz.ch/tec/public/rocketlogger/-/issues/129