Exemple #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')))
Exemple #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))
Exemple #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))
Exemple #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')))
Exemple #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))
Exemple #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))