Ejemplo n.º 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')))
Ejemplo n.º 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))
Ejemplo n.º 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))
Ejemplo n.º 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')))
Ejemplo n.º 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))
Ejemplo n.º 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))