Beispiel #1
0
 def test_write(self):
     self.f.attrs["y"] = self.empty_obj
     self.assertTrue(is_empty_dataspace(h5a.open(self.f.id, b'y')))
Beispiel #2
0
 def test_empty_create_via_Empty_class(self):
     self.f.create_dataset('foo', data=h5py.Empty(dtype='f'))
     self.assertTrue(is_empty_dataspace(self.f['foo'].id))
Beispiel #3
0
 def test_empty_create_via_None_shape(self):
     self.f.create_dataset('foo', dtype='f')
     self.assertTrue(is_empty_dataspace(self.f['foo'].id))
Beispiel #4
0
 def test_write(self):
     self.f.attrs["y"] = self.empty_obj
     self.assertTrue(is_empty_dataspace(h5a.open(self.f.id, b'y')))
Beispiel #5
0
 def test_empty_create_via_Empty_class(self):
     self.f.create_dataset('foo', data=h5py.Empty(dtype='f'))
     self.assertTrue(is_empty_dataspace(self.f['foo'].id))
Beispiel #6
0
 def test_empty_create_via_None_shape(self):
     self.f.create_dataset('foo', dtype='f')
     self.assertTrue(is_empty_dataspace(self.f['foo'].id))