Ejemplo n.º 1
0
 def test_invalid_filenames(self):
     with self.assertRaises(ValueError):
         H5Store(None)
     with self.assertRaises(ValueError):
         H5Store('')
     with self.assertRaises(ValueError):
         H5Store(123)
Ejemplo n.º 2
0
 def test_invalid_filenames(self):
     with pytest.raises(ValueError):
         H5Store(None)
     with pytest.raises(ValueError):
         H5Store('')
     with pytest.raises(ValueError):
         H5Store(123)
Ejemplo n.º 3
0
 def get_other_h5store(self, **kwargs):
     return H5Store(filename=self._fn_store_other, **kwargs)
Ejemplo n.º 4
0
def _read_from_h5store(filename, **kwargs):
    from signac.core.h5store import H5Store
    with H5Store(filename, **kwargs) as h5s:
        list(h5s)
Ejemplo n.º 5
0
def _read_from_h5store(filename, **kwargs):
    with H5Store(filename, **kwargs) as h5s:
        list(h5s)