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 2024-01-02 12:31 +0000
« prev ^ index » next coverage.py v6.5.0, created at 2024-01-02 12:31 +0000
1# http://pyrocko.org - GPLv3
2#
3# The Pyrocko Developers, 21st Century
4# ---|P------/S----------~Lg----------
6'''
7Utility functions for the scenario generator.
8'''
10from pyrocko import gf
11from .error import CannotCreatePath
14def remake_dir(dpath, force):
15 try:
16 return gf.store.remake_dir(dpath, force)
18 except gf.CannotCreate as e:
19 raise CannotCreatePath(str(e))