LoopStructural 1.6.6__py3-none-any.whl → 1.6.7__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.

Potentially problematic release.


This version of LoopStructural might be problematic. Click here for more details.

@@ -78,7 +78,7 @@ class ProcessInputData:
78
78
  self.contacts = contacts
79
79
  self._contact_orientations = None
80
80
  self.contact_orientations = contact_orientations
81
- self._fault_orientations = None
81
+ self._fault_orientations = pd.DataFrame(columns=["X", "Y", "Z", "gx", "gy", "gz", "coord", "feature_name"])
82
82
  self.fault_orientations = fault_orientations
83
83
  self._fault_locations = None
84
84
  self.fault_locations = fault_locations
@@ -313,10 +313,11 @@ class ProcessInputData:
313
313
  pts = self.fault_orientations.loc[
314
314
  self.fault_orientations["feature_name"] == fname, ["gx", "gy", "gz"]
315
315
  ]
316
- fault_properties.loc[
317
- fname,
318
- ["avgNormalEasting", "avgNormalNorthing", "avgNormalAltitude"],
319
- ] = np.nanmean(pts, axis=0)
316
+ if len(pts)>0:
317
+ fault_properties.loc[
318
+ fname,
319
+ ["avgNormalEasting", "avgNormalNorthing", "avgNormalAltitude"],
320
+ ] = np.nanmean(pts, axis=0)
320
321
  if (
321
322
  "avgSlipDirEasting" not in fault_properties.columns
322
323
  or "avgSlipDirNorthing" not in fault_properties.columns
@@ -399,7 +400,7 @@ class ProcessInputData:
399
400
  dataframes.append(self.contacts)
400
401
  if self.contact_orientations is not None:
401
402
  dataframes.append(self.contact_orientations)
402
- if self.fault_orientations is not None:
403
+ if len(self.fault_orientations) > 0:
403
404
  dataframes.append(self.fault_orientations)
404
405
  if self.fault_locations is not None:
405
406
  dataframes.append(self.fault_locations)
@@ -17,8 +17,7 @@ def random_colour(n: int = 1, cmap='tab20'):
17
17
  list
18
18
  List of colours in the form of (r,g,b,a) tuples
19
19
  """
20
- import matplotlib.cm as cm
21
-
20
+ from matplotlib import colormaps as cm
22
21
  colours = []
23
22
  for _i in range(n):
24
23
  colours.append(cm.get_cmap(cmap)(rng.random()))
@@ -41,7 +40,7 @@ def random_hex_colour(n: int = 1, cmap='tab20'):
41
40
  list
42
41
  List of colours in the form of hex strings
43
42
  """
44
- import matplotlib.cm as cm
43
+ from matplotlib import colormaps as cm
45
44
 
46
45
  colours = []
47
46
  for _i in range(n):
LoopStructural/version.py CHANGED
@@ -1 +1 @@
1
- __version__ = "1.6.6"
1
+ __version__ = "1.6.7"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: LoopStructural
3
- Version: 1.6.6
3
+ Version: 1.6.7
4
4
  Summary: 3D geological modelling
5
5
  Author-email: Lachlan Grose <lachlan.grose@monash.edu>
6
6
  License: MIT
@@ -1,5 +1,5 @@
1
1
  LoopStructural/__init__.py,sha256=nlJ0csTZ_xlTZrWvTKiTp3ER_XRQN6iqQ5sR94RD5QA,1331
2
- LoopStructural/version.py,sha256=jZXedhX8KUpTuFqDH2e8mjgp06okeyO4Id8VnCVtFpQ,22
2
+ LoopStructural/version.py,sha256=oUc5vcFny_sz8QQQyYQ6IGYmCI8isodNnAnIYUPypOY,22
3
3
  LoopStructural/datasets/__init__.py,sha256=ylb7fzJU_DyQ73LlwQos7VamqkDSGITbbnoKg7KAOmE,677
4
4
  LoopStructural/datasets/_base.py,sha256=FB_D5ybBYHoaNbycdkpZcRffzjrrL1xp9X0k-pyob9Y,7618
5
5
  LoopStructural/datasets/_example_models.py,sha256=Zg33IeUyh4C-lC0DRMLqCDP2IrX8L-gNV1WxJwBGjzM,113
@@ -103,7 +103,7 @@ LoopStructural/modelling/features/fold/fold_function/_trigo_fold_rotation_angle.
103
103
  LoopStructural/modelling/input/__init__.py,sha256=HhJM3V5b-8_64LiRbF3Bd1pjWhJlcknxMSMPRrqZ0-I,153
104
104
  LoopStructural/modelling/input/fault_network.py,sha256=0uxl7lOySdhMhNXoiOkuiHIXqAz1Ls0j-W65cmdQoP8,2348
105
105
  LoopStructural/modelling/input/map2loop_processor.py,sha256=T7Fgqd7FNJWylLKvfIniRZBMRMeAoP8iU330-WYU8Fg,7031
106
- LoopStructural/modelling/input/process_data.py,sha256=dmA6F-l8nvdH3Ckp5OaAjl3NJoWgm3PuELdXtBRGrz8,26149
106
+ LoopStructural/modelling/input/process_data.py,sha256=E0US-Rh9dlUdXejfimcLPsBIBfa6Xx6Nwm6VEMNeVUM,26269
107
107
  LoopStructural/modelling/input/project_file.py,sha256=WhJkMfDK9uE7MK7HK-YK6ZOBAdwLX5P7ThZgXj444Eg,4604
108
108
  LoopStructural/modelling/intrusions/__init__.py,sha256=EpZK3cHJwGQhPUYIwKCKu8vkNdt_nOgWF0zfhiqDYDA,712
109
109
  LoopStructural/modelling/intrusions/geom_conceptual_models.py,sha256=jwTlhYySUj7z4DEnJoi4AINZB_N3-SW6ONRFL66OsW0,3665
@@ -115,7 +115,7 @@ LoopStructural/modelling/intrusions/intrusion_support_functions.py,sha256=wodakh
115
115
  LoopStructural/utils/__init__.py,sha256=OJqNSu40SYJeC26IhoBBXDqQOogWjMGA-YokKVRrwMs,924
116
116
  LoopStructural/utils/_surface.py,sha256=Slz5CvH1KkMq1ycWHILQ_elNoLmzDFdZ2LdDL2q9Ml4,5962
117
117
  LoopStructural/utils/_transformation.py,sha256=lLoH3FlLjR9vVjc1-64ANL_53kWPU7qu8WVsG9K1wLw,4806
118
- LoopStructural/utils/colours.py,sha256=73FKc2wr4c2UZL1gpyTVUo1v_FAlF7TNteGIdnz7InU,1137
118
+ LoopStructural/utils/colours.py,sha256=oitN14y56gj6ALuuwqAyOBUzSAnr1mAmCHX3KigBf2Y,1160
119
119
  LoopStructural/utils/config.py,sha256=ITGOtZTo2_QBwXkG_0AFANfE90J9siCXLzxypVmg9QA,414
120
120
  LoopStructural/utils/dtm_creator.py,sha256=-yqGG0wyEJfTCCDghz058wull1q3zGFASjeu8oDgYnk,535
121
121
  LoopStructural/utils/exceptions.py,sha256=SJboJ7ncMqVX-ib7MMizClwMrFZRHQhjZr2eCnVwnQE,500
@@ -129,8 +129,8 @@ LoopStructural/utils/regions.py,sha256=LvcOCPudF4u95-GKBOZqXVxOEcR3cOFgFpcs5x43s
129
129
  LoopStructural/utils/typing.py,sha256=29uVSTZdzXXH-jdlaYyBWZ1gQ2-nlZ2-XoVgG_PXNFY,157
130
130
  LoopStructural/utils/utils.py,sha256=2Z4zVE6G752-SPmM29zebk82bROJxEwi_YiiJjcVED4,2438
131
131
  LoopStructural/visualisation/__init__.py,sha256=5BDgKor8-ae6DrS7IZybJ3Wq_pTnCchxuY4EgzA7v1M,318
132
- LoopStructural-1.6.6.dist-info/LICENSE,sha256=ZqGeNFOgmYevj7Ld7Q-kR4lAxWXuBRUdUmPC6XM_py8,1071
133
- LoopStructural-1.6.6.dist-info/METADATA,sha256=nwUNFHQGm-gSVIajeYytyRanadnCu2znYwD5gpIGcTw,6399
134
- LoopStructural-1.6.6.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
135
- LoopStructural-1.6.6.dist-info/top_level.txt,sha256=QtQErKzYHfg6ddxTQ1NyaTxXBVM6qAqrM_vxEPyXZLg,15
136
- LoopStructural-1.6.6.dist-info/RECORD,,
132
+ LoopStructural-1.6.7.dist-info/LICENSE,sha256=ZqGeNFOgmYevj7Ld7Q-kR4lAxWXuBRUdUmPC6XM_py8,1071
133
+ LoopStructural-1.6.7.dist-info/METADATA,sha256=xVYOcF6LshQkc80XhhKhtWy91pHJPujawm-NUKhTe_0,6399
134
+ LoopStructural-1.6.7.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
135
+ LoopStructural-1.6.7.dist-info/top_level.txt,sha256=QtQErKzYHfg6ddxTQ1NyaTxXBVM6qAqrM_vxEPyXZLg,15
136
+ LoopStructural-1.6.7.dist-info/RECORD,,