mirror of https://github.com/m-labs/artiq.git
test_h5types: use in-memory files
This commit is contained in:
parent
fbe89c8f25
commit
7a5b3a1167
|
@ -17,7 +17,6 @@ __pycache__/
|
||||||
/misoc_*/
|
/misoc_*/
|
||||||
|
|
||||||
/artiq/test/results
|
/artiq/test/results
|
||||||
/artiq/test/h5types.h5
|
|
||||||
/artiq/examples/master/results
|
/artiq/examples/master/results
|
||||||
/artiq/examples/master/last_rid.pyon
|
/artiq/examples/master/last_rid.pyon
|
||||||
/artiq/examples/master/dataset_db.pyon
|
/artiq/examples/master/dataset_db.pyon
|
||||||
|
@ -31,5 +30,4 @@ __pycache__/
|
||||||
/last_rid.pyon
|
/last_rid.pyon
|
||||||
/dataset_db.pyon
|
/dataset_db.pyon
|
||||||
/device_db.pyon
|
/device_db.pyon
|
||||||
/h5types.h5
|
|
||||||
/test*.py
|
/test*.py
|
||||||
|
|
|
@ -21,5 +21,5 @@ class TypesCase(unittest.TestCase):
|
||||||
for size in 16, 32, 64:
|
for size in 16, 32, 64:
|
||||||
d["f"+str(size)] = getattr(np, "float" + str(size))(42)
|
d["f"+str(size)] = getattr(np, "float" + str(size))(42)
|
||||||
|
|
||||||
with h5py.File("h5types.h5", "w") as f:
|
with h5py.File("h5types.h5", "w", "core", backing_store=False) as f:
|
||||||
result_dict_to_hdf5(f, d)
|
result_dict_to_hdf5(f, d)
|
||||||
|
|
Loading…
Reference in New Issue