Browse Source

Replace deprecated numpy.fromstring usage

tags/nilmdb-2.1.0
Jim Paris 9 months ago
parent
commit
71dc01c9a7
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      nilmdb/client/numpyclient.py

+ 1
- 1
nilmdb/client/numpyclient.py View File

@@ -59,7 +59,7 @@ class NumpyClient(nilmdb.client.client.Client):
dtype = self._get_dtype(path, layout)

def to_numpy(data):
a = numpy.fromstring(data, dtype)
a = numpy.frombuffer(data, dtype)
if structured:
return a
return numpy.c_[a['timestamp'], a['data']]


Loading…
Cancel
Save