tilupy 2.0.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- tilupy/__init__.py +23 -0
- tilupy/analytic_sol.py +2403 -0
- tilupy/benchmark.py +1563 -0
- tilupy/calibration.py +134 -0
- tilupy/cmd.py +177 -0
- tilupy/compare.py +195 -0
- tilupy/download_data.py +68 -0
- tilupy/initdata.py +207 -0
- tilupy/initsimus.py +50 -0
- tilupy/make_mass.py +111 -0
- tilupy/make_topo.py +468 -0
- tilupy/models/__init__.py +0 -0
- tilupy/models/lave2D/__init__.py +0 -0
- tilupy/models/lave2D/initsimus.py +665 -0
- tilupy/models/lave2D/read.py +264 -0
- tilupy/models/ravaflow/__init__.py +0 -0
- tilupy/models/ravaflow/initsimus.py +192 -0
- tilupy/models/ravaflow/read.py +273 -0
- tilupy/models/saval2D/__init__.py +0 -0
- tilupy/models/saval2D/read.py +298 -0
- tilupy/models/shaltop/__init__.py +0 -0
- tilupy/models/shaltop/initsimus.py +375 -0
- tilupy/models/shaltop/read.py +613 -0
- tilupy/notations.py +866 -0
- tilupy/plot.py +234 -0
- tilupy/raster.py +199 -0
- tilupy/read.py +2588 -0
- tilupy/utils.py +656 -0
- tilupy-2.0.0.dist-info/METADATA +876 -0
- tilupy-2.0.0.dist-info/RECORD +34 -0
- tilupy-2.0.0.dist-info/WHEEL +5 -0
- tilupy-2.0.0.dist-info/entry_points.txt +3 -0
- tilupy-2.0.0.dist-info/licenses/LICENSE +516 -0
- tilupy-2.0.0.dist-info/top_level.txt +1 -0
tilupy/__init__.py
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
_default_config = dict(language='english')
|
|
2
|
+
|
|
3
|
+
class Config(dict):
|
|
4
|
+
|
|
5
|
+
def __init__(self, **kwargs):
|
|
6
|
+
for key in kwargs:
|
|
7
|
+
self[key] = kwargs[key]
|
|
8
|
+
|
|
9
|
+
def update(self, **kwargs):
|
|
10
|
+
for key in kwargs:
|
|
11
|
+
self[key] = kwargs[key]
|
|
12
|
+
|
|
13
|
+
config = Config(**_default_config)
|
|
14
|
+
|
|
15
|
+
def set_config(**kwargs):
|
|
16
|
+
config.update(**kwargs)
|
|
17
|
+
|
|
18
|
+
if 'language' in kwargs:
|
|
19
|
+
import tilupy.notations
|
|
20
|
+
tilupy.notations.set_labels()
|
|
21
|
+
|
|
22
|
+
#import tilupy.notations
|
|
23
|
+
|