コード例 #1
0
ファイル: test_h5store.py プロジェクト: rosecers/signac
 def test_invalid_filenames(self):
     with self.assertRaises(ValueError):
         H5Store(None)
     with self.assertRaises(ValueError):
         H5Store('')
     with self.assertRaises(ValueError):
         H5Store(123)
コード例 #2
0
 def test_invalid_filenames(self):
     with pytest.raises(ValueError):
         H5Store(None)
     with pytest.raises(ValueError):
         H5Store('')
     with pytest.raises(ValueError):
         H5Store(123)
コード例 #3
0
 def get_other_h5store(self, **kwargs):
     return H5Store(filename=self._fn_store_other, **kwargs)
コード例 #4
0
def _read_from_h5store(filename, **kwargs):
    from signac.core.h5store import H5Store
    with H5Store(filename, **kwargs) as h5s:
        list(h5s)
コード例 #5
0
def _read_from_h5store(filename, **kwargs):
    with H5Store(filename, **kwargs) as h5s:
        list(h5s)