Coverage for /usr/local/lib/python3.11/dist-packages/pyrocko/scenario/util.py: 0%

7 statements  

« prev     ^ index     » next       coverage.py v6.5.0, created at 2023-10-06 06:59 +0000

1# http://pyrocko.org - GPLv3 

2# 

3# The Pyrocko Developers, 21st Century 

4# ---|P------/S----------~Lg---------- 

5 

6''' 

7Utility functions for the scenario generator. 

8''' 

9 

10from pyrocko import gf 

11from .error import CannotCreatePath 

12 

13 

14def remake_dir(dpath, force): 

15 try: 

16 return gf.store.remake_dir(dpath, force) 

17 

18 except gf.CannotCreate as e: 

19 raise CannotCreatePath(str(e))