Esempio n. 1
0
 def test_addDataField(self):
     out2 = hdf5Output.HDF5Output("hdf5test2.h5", mode='w')
     out2.addDataField("test", (0, 2, 2))
     out2.close()
Esempio n. 2
0
 def test_addComment(self):
     out2 = hdf5Output.HDF5Output("hdf5test2.h5", mode='w')
     out2.addDataField("test", (0, 2, 2))
     out2.addDataField("test2", (2, 2))
     out2.addCommentToField("test", "com2", "we dont need no")
     out2.close()
Esempio n. 3
0
 def test_close(self):
     out2 = hdf5Output.HDF5Output("hdf5test2.h5", mode='w')
     out2.close()
Esempio n. 4
0
 def test_addAttribute(self):
     out2 = hdf5Output.HDF5Output("hdf5test2.h5", mode='w')
     out2.addDataField("test", (0, 2, 2))
     out2.addDataField("test2", (2, 2))
     out2.addAttributeToField("test2", "answer", 42.)
     out2.close()
Esempio n. 5
0
 def test_constructor(self):
     o = hdf5Output.HDF5Output("hdf5test.h5", mode='w')
     o.close()