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.
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.4
1
+ Metadata-Version: 2.5
2
2
  Name: cmflow
3
- Version: 0.4.2
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 dist/*
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 dist/*
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:None for f in gmf1.keys()},
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]):