Browse Source

Avoid FutureWarning from Numpy

tags/nilmdb-2.0.0
Jim Paris 4 years ago
parent
commit
613a3185e3
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      tests/test_numpyclient.py

+ 3
- 3
tests/test_numpyclient.py View File

@@ -176,9 +176,9 @@ class TestNumpyClient(object):
in_("error parsing input data", str(e.exception))

# Make sure the /newton/prep copies are identical
a = np.vstack(client.stream_extract_numpy("/newton/prep"))
b = np.vstack(client.stream_extract_numpy("/test/2"))
c = np.vstack(client.stream_extract_numpy("/test/3"))
a = np.vstack(list(client.stream_extract_numpy("/newton/prep")))
b = np.vstack(list(client.stream_extract_numpy("/test/2")))
c = np.vstack(list(client.stream_extract_numpy("/test/3")))
assert(np.array_equal(a,b))
assert(np.array_equal(a,c))



Loading…
Cancel
Save