cmflow 0.4.2__tar.gz → 0.4.3__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.
- {cmflow-0.4.2 → cmflow-0.4.3}/PKG-INFO +6 -3
- {cmflow-0.4.2 → cmflow-0.4.3}/README.md +4 -1
- {cmflow-0.4.2 → cmflow-0.4.3}/cmflow/conceptual_models.py +15 -1
- cmflow-0.4.2/cmflow/conceptual_models.py.bak +0 -765
- cmflow-0.4.2/cmflow/geom_3dface_utils.py.bak +0 -409
- cmflow-0.4.2/cmflow/geom_surface_utils.py.bak +0 -446
- cmflow-0.4.2/cmflow/name_combo.py +0 -0
- cmflow-0.4.2/cmflow/t2data_utils.py.bak +0 -458
- cmflow-0.4.2/cmflow/test_conceptual_models.py.bak +0 -285
- {cmflow-0.4.2 → cmflow-0.4.3}/.github/workflows/pypi.yml +0 -0
- {cmflow-0.4.2 → cmflow-0.4.3}/.github/workflows/unittest.yml +0 -0
- {cmflow-0.4.2 → cmflow-0.4.3}/.gitignore +0 -0
- {cmflow-0.4.2 → cmflow-0.4.3}/cmflow/__init__.py +0 -0
- {cmflow-0.4.2 → cmflow-0.4.3}/cmflow/geom_3dface_utils.py +0 -0
- {cmflow-0.4.2 → cmflow-0.4.3}/cmflow/geom_surface_utils.py +0 -0
- {cmflow-0.4.2 → cmflow-0.4.3}/cmflow/t2data_utils.py +0 -0
- {cmflow-0.4.2 → cmflow-0.4.3}/cmflow/test_conceptual_models.py +0 -0
- {cmflow-0.4.2 → cmflow-0.4.3}/cmflow/test_geom_3dface_utils.py +0 -0
- {cmflow-0.4.2 → cmflow-0.4.3}/cmflow/test_geom_3dface_utils_ex.ts +0 -0
- {cmflow-0.4.2 → cmflow-0.4.3}/cmflow/test_geom_surface_utils.py +0 -0
- {cmflow-0.4.2 → cmflow-0.4.3}/pyproject.toml +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
2
|
Name: cmflow
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.3
|
|
4
4
|
Summary: Building TOUGH2/Waiwera models from layers of conceptual models
|
|
5
5
|
Project-URL: Homepage, https://github.com/cyeh015/cmflow
|
|
6
6
|
Project-URL: Source Code, https://github.com/cyeh015/cmflow
|
|
@@ -236,5 +236,8 @@ Publish to PyPI:
|
|
|
236
236
|
|
|
237
237
|
```console
|
|
238
238
|
hatch build
|
|
239
|
-
hatch publish
|
|
239
|
+
hatch publish -u __token__ -a pypi-<token>
|
|
240
240
|
```
|
|
241
|
+
|
|
242
|
+
`hatch publish` will prompt for user and password. Use `__token__` as user, and then paste the whole token including the first part `pypi-` as password. This will be cached by hatch automatically.
|
|
243
|
+
|
|
@@ -213,5 +213,8 @@ Publish to PyPI:
|
|
|
213
213
|
|
|
214
214
|
```console
|
|
215
215
|
hatch build
|
|
216
|
-
hatch publish
|
|
216
|
+
hatch publish -u __token__ -a pypi-<token>
|
|
217
217
|
```
|
|
218
|
+
|
|
219
|
+
`hatch publish` will prompt for user and password. Use `__token__` as user, and then paste the whole token including the first part `pypi-` as password. This will be cached by hatch automatically.
|
|
220
|
+
|
|
@@ -350,7 +350,7 @@ class FaultRocktypes:
|
|
|
350
350
|
"faults": {
|
|
351
351
|
"rank": [1],
|
|
352
352
|
"legend": gmf1,
|
|
353
|
-
"direction": {f:
|
|
353
|
+
"direction": {f:self.fault_dir[gmf1[f]] for f in gmf1.keys() if gmf1[f]},
|
|
354
354
|
"color": {rt[:1]: None for rt, fs in self.rocktype_faults.items() if len(fs)==1},
|
|
355
355
|
},
|
|
356
356
|
"intersections": {
|
|
@@ -360,6 +360,20 @@ class FaultRocktypes:
|
|
|
360
360
|
rt, warn=False) for rt in self.rocktype_faults.keys()},
|
|
361
361
|
},
|
|
362
362
|
}
|
|
363
|
+
|
|
364
|
+
# sometimes rank 1 name isn't a specific fault, combined with rank 2
|
|
365
|
+
# becomes combination of 3 or more faults
|
|
366
|
+
for rt in self.rocktype_faults:
|
|
367
|
+
if rt[0] not in gmf_fault['faults']['legend']:
|
|
368
|
+
gmf_fault['faults']['legend'][rt[0]] = 'Combo of 3+ faults'
|
|
369
|
+
gmf_fault['faults']['color'][rt[0]] = None
|
|
370
|
+
gmf_fault['faults']['direction'][rt[0]] = None
|
|
371
|
+
|
|
372
|
+
colors = default_discrete_colors(len(gmf_fault['faults']['color']))
|
|
373
|
+
for f, c in zip(gmf_fault['faults']['color'], colors):
|
|
374
|
+
gmf_fault['faults']['color'][f] = c
|
|
375
|
+
|
|
376
|
+
|
|
363
377
|
return gmf_fault
|
|
364
378
|
|
|
365
379
|
def export_gmf_convention(self, rank=[1, 2]):
|