gimu 0.4.0__tar.gz → 0.5.0__tar.gz
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.
- {gimu-0.4.0 → gimu-0.5.0}/PKG-INFO +1 -1
- {gimu-0.4.0 → gimu-0.5.0}/src/gimu/gmf/modifier.py +21 -5
- {gimu-0.4.0 → gimu-0.5.0}/.gitignore +0 -0
- {gimu-0.4.0 → gimu-0.5.0}/LICENSE.txt +0 -0
- {gimu-0.4.0 → gimu-0.5.0}/README.md +0 -0
- {gimu-0.4.0 → gimu-0.5.0}/environment.yml +0 -0
- {gimu-0.4.0 → gimu-0.5.0}/pyproject.toml +0 -0
- {gimu-0.4.0 → gimu-0.5.0}/src/gimu/__init__.py +0 -0
- {gimu-0.4.0 → gimu-0.5.0}/src/gimu/config.py +0 -0
- {gimu-0.4.0 → gimu-0.5.0}/src/gimu/easy_date.py +0 -0
- {gimu-0.4.0 → gimu-0.5.0}/src/gimu/geo_common.py +0 -0
- {gimu-0.4.0 → gimu-0.5.0}/src/gimu/gmf/__init__.py +0 -0
- {gimu-0.4.0 → gimu-0.5.0}/src/gimu/gmf/data.py +0 -0
- {gimu-0.4.0 → gimu-0.5.0}/src/gimu/project_cli.py +0 -0
- {gimu-0.4.0 → gimu-0.5.0}/src/gimu/save2incon.py +0 -0
- {gimu-0.4.0 → gimu-0.5.0}/src/gimu/t2listingh5.py +0 -0
- {gimu-0.4.0 → gimu-0.5.0}/src/gimu/waiwera_copy.py +0 -0
- {gimu-0.4.0 → gimu-0.5.0}/src/gimu/waiwera_listing.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: gimu
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.5.0
|
|
4
4
|
Summary: A toolkit and python library for modelling at Geothermal Institute, University of Auckland.
|
|
5
5
|
Project-URL: Documentation, https://github.com/cyeh015/gimu/blob/main/README.md
|
|
6
6
|
Project-URL: Issues, https://github.com/cyeh015/gimu/issues
|
|
@@ -85,13 +85,24 @@ def compute_rocktypes(rocktype_json, warn=True):
|
|
|
85
85
|
float(rt['modifier']['k2'][0]),
|
|
86
86
|
float(rt['modifier']['k3'][0]),
|
|
87
87
|
]
|
|
88
|
-
|
|
89
|
-
if rt['
|
|
88
|
+
c_modifier = 1.0
|
|
89
|
+
if 'conductivity' in rt['modifier']:
|
|
90
|
+
c_modifier = float(rt['modifier']['conductivity'][0])
|
|
91
|
+
# update values in place
|
|
92
|
+
base_name = rt['base'][0]
|
|
93
|
+
if base_name in rocktype_json:
|
|
90
94
|
rt['permeability'] = [k * m for k, m in zip(
|
|
91
|
-
rocktype_json[
|
|
92
|
-
rt['porosity'][0] = rocktype_json[
|
|
95
|
+
rocktype_json[base_name]['permeability'], k_modifier)]
|
|
96
|
+
rt['porosity'][0] = rocktype_json[base_name]['porosity'][0] * rt['modifier']['porosity'][0]
|
|
97
|
+
if 'conductivity' in rocktype_json[base_name]:
|
|
98
|
+
# print(f"Rocktype {rt_name} use conductivity from base rocktype {base_name}")
|
|
99
|
+
rt['conductivity'] = [rocktype_json[base_name]['conductivity'][0] * c_modifier]
|
|
100
|
+
else:
|
|
101
|
+
if 'conductivity' in rt:
|
|
102
|
+
print(f"Rocktype {rt_name} remove conductivity because no conductivity in base rocktype {base_name}")
|
|
103
|
+
del rt['conductivity']
|
|
93
104
|
else:
|
|
94
|
-
msg = f"Base rocktype {
|
|
105
|
+
msg = f"Base rocktype {base_name} not found for rocktype {rt_name}"
|
|
95
106
|
if warn:
|
|
96
107
|
raise Exception(msg)
|
|
97
108
|
else:
|
|
@@ -112,6 +123,9 @@ def update_waiwera_model_rocktypes(wjson, rtjson, skip_missing=True):
|
|
|
112
123
|
modifier = rtjson[rt['name']]
|
|
113
124
|
rt['permeability'] = modifier['permeability']
|
|
114
125
|
rt['porosity'] = modifier['porosity'][0]
|
|
126
|
+
if 'conductivity' in modifier:
|
|
127
|
+
rt['wet_conductivity'] = modifier['conductivity'][0]
|
|
128
|
+
rt['dry_conductivity'] = modifier['conductivity'][0]
|
|
115
129
|
|
|
116
130
|
def update_aut2_model_rocktypes(dat, rtjson, skip_missing=True):
|
|
117
131
|
""" rtjson is loaded from the GMF modifier _rocktypes.json
|
|
@@ -126,4 +140,6 @@ def update_aut2_model_rocktypes(dat, rtjson, skip_missing=True):
|
|
|
126
140
|
modifier = rtjson[rt.name]
|
|
127
141
|
rt.permeability = modifier['permeability']
|
|
128
142
|
rt.porosity = modifier['porosity'][0]
|
|
143
|
+
if 'conductivity' in modifier:
|
|
144
|
+
rt.conductivity = modifier['conductivity'][0]
|
|
129
145
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|