|
|
@@ -71,15 +71,6 @@ class Test00Nilmdb(object): # named 00 so it runs first |
|
|
|
eq_(db.stream_list(layout="uint16_6"), [ ["/newton/raw", "uint16_6"] ]) |
|
|
|
eq_(db.stream_list(path="/newton/raw"), [ ["/newton/raw", "uint16_6"] ]) |
|
|
|
|
|
|
|
# Verify that columns were made right (pytables specific) |
|
|
|
if "h5file" in db.data.__dict__: |
|
|
|
h5file = db.data.h5file |
|
|
|
eq_(len(h5file.getNode("/newton/prep").cols), 9) |
|
|
|
eq_(len(h5file.getNode("/newton/raw").cols), 7) |
|
|
|
eq_(len(h5file.getNode("/newton/zzz/rawnotch").cols), 10) |
|
|
|
assert(not h5file.getNode("/newton/prep").colindexed["timestamp"]) |
|
|
|
assert(not h5file.getNode("/newton/prep").colindexed["c1"]) |
|
|
|
|
|
|
|
# Set / get metadata |
|
|
|
eq_(db.stream_get_metadata("/newton/prep"), {}) |
|
|
|
eq_(db.stream_get_metadata("/newton/raw"), {}) |
|
|
|