apsg 1.3.6__py3-none-any.whl → 1.3.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.
apsg/__init__.py CHANGED
@@ -158,6 +158,6 @@ __all__ = (
158
158
  "quicknet",
159
159
  )
160
160
 
161
- __version__ = "1.3.6"
161
+ __version__ = "1.3.7"
162
162
  __author__ = "Ondrej Lexa"
163
163
  __email__ = "lexa.ondrej@gmail.com"
@@ -1384,6 +1384,9 @@ class EllipseSet(FeatureSet):
1384
1384
 
1385
1385
  __feature_class__ = Ellipse
1386
1386
 
1387
+ def __repr__(self):
1388
+ return f"E2({len(self)}) {self.name}"
1389
+
1387
1390
  @property
1388
1391
  def S1(self) -> np.ndarray:
1389
1392
  """
@@ -1433,6 +1436,15 @@ class EllipseSet(FeatureSet):
1433
1436
  """
1434
1437
  return np.array([e.e12 for e in self])
1435
1438
 
1439
+ def transform(self, F):
1440
+ """Return transformation of all features ``EllipseSet`` by matrix 'F'.
1441
+
1442
+ Args:
1443
+ F: Transformation matrix. Array-like value e.g. ``DeformationGradient3``
1444
+
1445
+ """
1446
+ return type(self)([e.transform(F) for e in self], name=self.name)
1447
+
1436
1448
 
1437
1449
  class OrientationTensor2Set(EllipseSet):
1438
1450
  """
@@ -1441,6 +1453,9 @@ class OrientationTensor2Set(EllipseSet):
1441
1453
 
1442
1454
  __feature_class__ = OrientationTensor2
1443
1455
 
1456
+ def __repr__(self):
1457
+ return f"M2({len(self)}) {self.name}"
1458
+
1444
1459
 
1445
1460
  class EllipsoidSet(FeatureSet):
1446
1461
  """
@@ -1449,6 +1464,9 @@ class EllipsoidSet(FeatureSet):
1449
1464
 
1450
1465
  __feature_class__ = Ellipsoid
1451
1466
 
1467
+ def __repr__(self):
1468
+ return f"E({len(self)}) {self.name}"
1469
+
1452
1470
  @property
1453
1471
  def strength(self) -> np.ndarray:
1454
1472
  """
@@ -1675,6 +1693,15 @@ class EllipsoidSet(FeatureSet):
1675
1693
  """
1676
1694
  return np.array([e.MAD for e in self])
1677
1695
 
1696
+ def transform(self, F):
1697
+ """Return transformation of all features ``EllipsoidSet`` by matrix 'F'.
1698
+
1699
+ Args:
1700
+ F: Transformation matrix. Array-like value e.g. ``DeformationGradient3``
1701
+
1702
+ """
1703
+ return type(self)([e.transform(F) for e in self], name=self.name)
1704
+
1678
1705
 
1679
1706
  class OrientationTensor3Set(EllipsoidSet):
1680
1707
  """
@@ -1683,6 +1710,9 @@ class OrientationTensor3Set(EllipsoidSet):
1683
1710
 
1684
1711
  __feature_class__ = OrientationTensor3
1685
1712
 
1713
+ def __repr__(self):
1714
+ return f"M({len(self)}) {self.name}"
1715
+
1686
1716
 
1687
1717
  class ClusterSet(object):
1688
1718
  """
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: apsg
3
- Version: 1.3.6
3
+ Version: 1.3.7
4
4
  Summary: APSG - The package for structural geologists
5
5
  Author-email: Ondrej Lexa <lexa.ondrej@gmail.com>
6
6
  Maintainer-email: Ondrej Lexa <lexa.ondrej@gmail.com>
@@ -1,4 +1,4 @@
1
- apsg/__init__.py,sha256=er5PTmzLPoYoorvyKGhTjeyE6lVsLZr0nB5ariut94o,2849
1
+ apsg/__init__.py,sha256=6jHvFzECLR3wHcC0nVyniw6z1_67XTp5dvssRQFXVsQ,2849
2
2
  apsg/config.py,sha256=vwJZVqWQ2bXe4TNW3hzse-dIam3QBwNeFx5VJUhNjU8,4549
3
3
  apsg/shell.py,sha256=1D0PeB7qXzlpiOf2QYGo6OJlEVN1KJPYld1GEREBiFg,707
4
4
  apsg/database/__init__.py,sha256=7Rvcf1KBBBNhoM28ZlvQ01CkScQTroFkoS4d1kD55Ws,315
@@ -7,7 +7,7 @@ apsg/database/_sdbread.py,sha256=lKvImHCFaxXr0wx5FnogVRp6bAPeaP01MDpUn_rH3Ek,110
7
7
  apsg/decorator/__init__.py,sha256=fZ-dxpldQIk6-2JhVnCj-Tsl8bz2nvoGOyG7uXKvBfg,160
8
8
  apsg/decorator/_decorator.py,sha256=8TMSrcVvhU5UCbNMrnyrW3-65qo20_6N2ShtXd3bP-k,1194
9
9
  apsg/feature/__init__.py,sha256=XkyS-X8lUaXCVaXgoK0GETmTCCGqB1BmSwZRZG3blZQ,1733
10
- apsg/feature/_container.py,sha256=7RLkTnEwDDhm6c4jErQOTIPg5KBM46SLpcFlrtyZHvg,60812
10
+ apsg/feature/_container.py,sha256=4RgiLNtLQPArHg8uvSlwesz9iLbaq513sH5mBTQqLKs,61682
11
11
  apsg/feature/_geodata.py,sha256=tjgPSKXyEOXiAN3iPeHpm8kpj__jI4ahtTpDuWhQNBE,24008
12
12
  apsg/feature/_paleomag.py,sha256=WIICUOEJGGFHbCDF0gbW7lMt10jI0el0UVhkbMH7XAs,14911
13
13
  apsg/feature/_statistics.py,sha256=WwBU2D7SyIHMpWnO7WFqbIpSkz6KUCT9xkG8oVzgskQ,13916
@@ -30,9 +30,9 @@ apsg/plotting/_projection.py,sha256=ix67PwOU2WGjryEcsHlVIMpcVC9yxy45ycOV9k5x_Q8,
30
30
  apsg/plotting/_roseplot.py,sha256=Wq5NBCDZMUQWEioIC6hYAZzjDKZsiDIJtjk_vQzzCd8,13104
31
31
  apsg/plotting/_stereogrid.py,sha256=awh7MwN1WgszhOlr6UgR20wHQJ8u778-Tf_w1uflrV4,11869
32
32
  apsg/plotting/_stereonet.py,sha256=uHJXluFMkeaI4yzD9pGc4DIlgjZA01INySLKtUHLAlU,36624
33
- apsg-1.3.6.dist-info/licenses/LICENSE,sha256=lY0kfpVRrzcgVZq7pI6rLK5WYiUMWe0bdKpDelN6hk8,1120
34
- apsg-1.3.6.dist-info/METADATA,sha256=tD60lfw5Bi1DY0NlsQG6FEnKxv87Bukfz5a-_-jVdks,8047
35
- apsg-1.3.6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
36
- apsg-1.3.6.dist-info/entry_points.txt,sha256=SowP7_uRI0NJuzznKBXyM9BJcSwBxbXo6Iz5LUo9mEQ,42
37
- apsg-1.3.6.dist-info/top_level.txt,sha256=xWxwi0nqqOyKdmpsszfR-bmqnNpgVbhnLRuIKGJnaUM,5
38
- apsg-1.3.6.dist-info/RECORD,,
33
+ apsg-1.3.7.dist-info/licenses/LICENSE,sha256=lY0kfpVRrzcgVZq7pI6rLK5WYiUMWe0bdKpDelN6hk8,1120
34
+ apsg-1.3.7.dist-info/METADATA,sha256=U1VZi6_uGzK6KXW1qI20h2xa6X6HXEJ75kuzpJnrJLU,8047
35
+ apsg-1.3.7.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
36
+ apsg-1.3.7.dist-info/entry_points.txt,sha256=SowP7_uRI0NJuzznKBXyM9BJcSwBxbXo6Iz5LUo9mEQ,42
37
+ apsg-1.3.7.dist-info/top_level.txt,sha256=xWxwi0nqqOyKdmpsszfR-bmqnNpgVbhnLRuIKGJnaUM,5
38
+ apsg-1.3.7.dist-info/RECORD,,
File without changes