apsg 1.3.4__tar.gz → 1.3.6__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.
Files changed (45) hide show
  1. {apsg-1.3.4/src/apsg.egg-info → apsg-1.3.6}/PKG-INFO +2 -8
  2. {apsg-1.3.4 → apsg-1.3.6}/pyproject.toml +1 -10
  3. {apsg-1.3.4 → apsg-1.3.6}/src/apsg/__init__.py +91 -31
  4. {apsg-1.3.4 → apsg-1.3.6}/src/apsg/config.py +0 -1
  5. {apsg-1.3.4 → apsg-1.3.6}/src/apsg/database/_sdbread.py +1 -1
  6. {apsg-1.3.4 → apsg-1.3.6}/src/apsg/feature/__init__.py +24 -20
  7. {apsg-1.3.4 → apsg-1.3.6}/src/apsg/feature/_container.py +156 -101
  8. {apsg-1.3.4 → apsg-1.3.6}/src/apsg/feature/_geodata.py +65 -11
  9. {apsg-1.3.4 → apsg-1.3.6}/src/apsg/feature/_tensor3.py +24 -0
  10. {apsg-1.3.4 → apsg-1.3.6}/src/apsg/math/_matrix.py +1 -5
  11. {apsg-1.3.4 → apsg-1.3.6}/src/apsg/plotting/_roseplot.py +36 -35
  12. {apsg-1.3.4 → apsg-1.3.6/src/apsg.egg-info}/PKG-INFO +2 -8
  13. {apsg-1.3.4 → apsg-1.3.6}/src/apsg.egg-info/requires.txt +1 -7
  14. {apsg-1.3.4 → apsg-1.3.6}/tests/test_apsg.py +2 -2
  15. {apsg-1.3.4 → apsg-1.3.6}/LICENSE +0 -0
  16. {apsg-1.3.4 → apsg-1.3.6}/README.md +0 -0
  17. {apsg-1.3.4 → apsg-1.3.6}/setup.cfg +0 -0
  18. {apsg-1.3.4 → apsg-1.3.6}/src/apsg/database/__init__.py +0 -0
  19. {apsg-1.3.4 → apsg-1.3.6}/src/apsg/database/_alchemy.py +0 -0
  20. {apsg-1.3.4 → apsg-1.3.6}/src/apsg/decorator/__init__.py +0 -0
  21. {apsg-1.3.4 → apsg-1.3.6}/src/apsg/decorator/_decorator.py +0 -0
  22. {apsg-1.3.4 → apsg-1.3.6}/src/apsg/feature/_paleomag.py +0 -0
  23. {apsg-1.3.4 → apsg-1.3.6}/src/apsg/feature/_statistics.py +0 -0
  24. {apsg-1.3.4 → apsg-1.3.6}/src/apsg/feature/_tensor2.py +0 -0
  25. {apsg-1.3.4 → apsg-1.3.6}/src/apsg/helpers/__init__.py +0 -0
  26. {apsg-1.3.4 → apsg-1.3.6}/src/apsg/helpers/_helper.py +0 -0
  27. {apsg-1.3.4 → apsg-1.3.6}/src/apsg/helpers/_math.py +0 -0
  28. {apsg-1.3.4 → apsg-1.3.6}/src/apsg/helpers/_notation.py +0 -0
  29. {apsg-1.3.4 → apsg-1.3.6}/src/apsg/math/__init__.py +0 -0
  30. {apsg-1.3.4 → apsg-1.3.6}/src/apsg/math/_vector.py +0 -0
  31. {apsg-1.3.4 → apsg-1.3.6}/src/apsg/pandas/__init__.py +0 -0
  32. {apsg-1.3.4 → apsg-1.3.6}/src/apsg/pandas/_pandas_api.py +0 -0
  33. {apsg-1.3.4 → apsg-1.3.6}/src/apsg/plotting/__init__.py +0 -0
  34. {apsg-1.3.4 → apsg-1.3.6}/src/apsg/plotting/_fabricplot.py +0 -0
  35. {apsg-1.3.4 → apsg-1.3.6}/src/apsg/plotting/_paleomagplots.py +0 -0
  36. {apsg-1.3.4 → apsg-1.3.6}/src/apsg/plotting/_plot_artists.py +0 -0
  37. {apsg-1.3.4 → apsg-1.3.6}/src/apsg/plotting/_projection.py +0 -0
  38. {apsg-1.3.4 → apsg-1.3.6}/src/apsg/plotting/_stereogrid.py +0 -0
  39. {apsg-1.3.4 → apsg-1.3.6}/src/apsg/plotting/_stereonet.py +0 -0
  40. {apsg-1.3.4 → apsg-1.3.6}/src/apsg/shell.py +0 -0
  41. {apsg-1.3.4 → apsg-1.3.6}/src/apsg.egg-info/SOURCES.txt +0 -0
  42. {apsg-1.3.4 → apsg-1.3.6}/src/apsg.egg-info/dependency_links.txt +0 -0
  43. {apsg-1.3.4 → apsg-1.3.6}/src/apsg.egg-info/entry_points.txt +0 -0
  44. {apsg-1.3.4 → apsg-1.3.6}/src/apsg.egg-info/top_level.txt +0 -0
  45. {apsg-1.3.4 → apsg-1.3.6}/tests/test_tensors.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: apsg
3
- Version: 1.3.4
3
+ Version: 1.3.6
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>
@@ -59,14 +59,8 @@ Requires-Dist: ipykernel; extra == "docs"
59
59
  Requires-Dist: nbsphinx; extra == "docs"
60
60
  Requires-Dist: autodocsumm; extra == "docs"
61
61
  Provides-Extra: dev
62
- Requires-Dist: pytest; extra == "dev"
62
+ Requires-Dist: apsg[docs,extra,tests]; extra == "dev"
63
63
  Requires-Dist: black; extra == "dev"
64
- Requires-Dist: sphinx; extra == "dev"
65
- Requires-Dist: sphinx_rtd_theme; extra == "dev"
66
- Requires-Dist: readthedocs-sphinx-search; extra == "dev"
67
- Requires-Dist: ipykernel; extra == "dev"
68
- Requires-Dist: nbsphinx; extra == "dev"
69
- Requires-Dist: autodocsumm; extra == "dev"
70
64
  Dynamic: license-file
71
65
 
72
66
  <img src="https://ondrolexa.github.io/apsg/apsg_banner.svg" alt="APSG logo" width="300px"/>
@@ -28,16 +28,7 @@ docs = [
28
28
  "nbsphinx",
29
29
  "autodocsumm",
30
30
  ]
31
- dev = [
32
- "pytest",
33
- "black",
34
- "sphinx",
35
- "sphinx_rtd_theme",
36
- "readthedocs-sphinx-search",
37
- "ipykernel",
38
- "nbsphinx",
39
- "autodocsumm",
40
- ]
31
+ dev = ["apsg[extra,tests,docs]", "black"]
41
32
 
42
33
  [project.urls]
43
34
  Homepage = "https://github.com/ondrolexa/apsg"
@@ -1,56 +1,114 @@
1
1
  # -*- coding: utf-8 -*-
2
2
 
3
- from apsg.math import (
4
- Vector3 as vec,
5
- Vector2 as vec2,
6
- Matrix2 as matrix2,
7
- Matrix3 as matrix,
8
- )
9
3
  from apsg.config import apsg_conf
10
4
  from apsg.feature import (
11
- Lineation as lin,
12
- Foliation as fol,
13
- Pair as pair,
14
- Fault as fault,
5
+ ClusterSet as cluster,
6
+ )
7
+ from apsg.feature import (
15
8
  Cone as cone,
16
9
  )
17
10
  from apsg.feature import (
18
- Vector3Set as vecset,
19
- Vector2Set as vec2set,
20
- LineationSet as linset,
21
- FoliationSet as folset,
22
- PairSet as pairset,
23
- FaultSet as faultset,
24
11
  ConeSet as coneset,
12
+ )
13
+ from apsg.feature import (
14
+ DeformationGradient2 as defgrad2,
15
+ )
16
+ from apsg.feature import (
17
+ DeformationGradient3 as defgrad,
18
+ )
19
+ from apsg.feature import (
20
+ Direction as dir2,
21
+ )
22
+ from apsg.feature import (
23
+ Direction2Set as dir2set,
24
+ )
25
+ from apsg.feature import (
26
+ Ellipse as ellipse,
27
+ )
28
+ from apsg.feature import (
25
29
  EllipseSet as ellipseset,
30
+ )
31
+ from apsg.feature import (
32
+ Ellipsoid as ellipsoid,
33
+ )
34
+ from apsg.feature import (
26
35
  EllipsoidSet as ellipsoidset,
36
+ )
37
+ from apsg.feature import (
38
+ Fault as fault,
39
+ )
40
+ from apsg.feature import (
41
+ FaultSet as faultset,
42
+ )
43
+ from apsg.feature import (
44
+ Foliation as fol,
45
+ )
46
+ from apsg.feature import (
47
+ FoliationSet as folset,
48
+ )
49
+ from apsg.feature import G
50
+ from apsg.feature import (
51
+ Lineation as lin,
52
+ )
53
+ from apsg.feature import (
54
+ LineationSet as linset,
55
+ )
56
+ from apsg.feature import (
57
+ OrientationTensor2 as ortensor2,
58
+ )
59
+ from apsg.feature import (
27
60
  OrientationTensor2Set as ortensor2set,
61
+ )
62
+ from apsg.feature import (
63
+ OrientationTensor3 as ortensor,
64
+ )
65
+ from apsg.feature import (
28
66
  OrientationTensor3Set as ortensorset,
29
- ClusterSet as cluster,
30
67
  )
31
68
  from apsg.feature import (
32
- DeformationGradient3 as defgrad,
33
- VelocityGradient3 as velgrad,
69
+ Pair as pair,
70
+ )
71
+ from apsg.feature import (
72
+ PairSet as pairset,
73
+ )
74
+ from apsg.feature import (
75
+ Stress2 as stress2,
76
+ )
77
+ from apsg.feature import (
34
78
  Stress3 as stress,
35
- Ellipsoid as ellipsoid,
36
- OrientationTensor3 as ortensor,
37
79
  )
38
80
  from apsg.feature import (
39
- DeformationGradient2 as defgrad2,
81
+ Vector2Set as vec2set,
82
+ )
83
+ from apsg.feature import (
84
+ Vector3Set as vecset,
85
+ )
86
+ from apsg.feature import (
40
87
  VelocityGradient2 as velgrad2,
41
- Stress2 as stress2,
42
- Ellipse as ellipse,
43
- OrientationTensor2 as ortensor2,
44
88
  )
45
- from apsg.feature import G
89
+ from apsg.feature import (
90
+ VelocityGradient3 as velgrad,
91
+ )
92
+ from apsg.math import (
93
+ Matrix2 as matrix2,
94
+ )
95
+ from apsg.math import (
96
+ Matrix3 as matrix,
97
+ )
98
+ from apsg.math import (
99
+ Vector2 as vec2,
100
+ )
101
+ from apsg.math import (
102
+ Vector3 as vec,
103
+ )
46
104
  from apsg.plotting import (
105
+ FlinnPlot,
106
+ HsuPlot,
107
+ RamsayPlot,
108
+ RosePlot,
47
109
  StereoGrid,
48
110
  StereoNet,
49
- RosePlot,
50
111
  VollmerPlot,
51
- RamsayPlot,
52
- FlinnPlot,
53
- HsuPlot,
54
112
  quicknet,
55
113
  )
56
114
 
@@ -60,6 +118,7 @@ __all__ = (
60
118
  "vec2",
61
119
  "matrix",
62
120
  "matrix2",
121
+ "dir2",
63
122
  "lin",
64
123
  "fol",
65
124
  "pair",
@@ -67,6 +126,7 @@ __all__ = (
67
126
  "cone",
68
127
  "vecset",
69
128
  "vec2set",
129
+ "dir2set",
70
130
  "linset",
71
131
  "folset",
72
132
  "pairset",
@@ -98,6 +158,6 @@ __all__ = (
98
158
  "quicknet",
99
159
  )
100
160
 
101
- __version__ = "1.3.4"
161
+ __version__ = "1.3.6"
102
162
  __author__ = "Ondrej Lexa"
103
163
  __email__ = "lexa.ondrej@gmail.com"
@@ -138,7 +138,6 @@ apsg_conf = dict(
138
138
  ),
139
139
  roseplot_default_kwargs=dict(
140
140
  bins=36,
141
- axial=True,
142
141
  density=True,
143
142
  arrowness=0.95,
144
143
  rwidth=1,
@@ -10,7 +10,7 @@ from apsg.feature._geodata import Lineation, Foliation
10
10
  from apsg.feature._container import LineationSet, FoliationSet
11
11
 
12
12
 
13
- class SDB(object):
13
+ class SDB:
14
14
  """
15
15
  sqlite3 based read-only interface to PySDB database
16
16
 
@@ -1,39 +1,42 @@
1
1
  # -*- coding: utf-8 -*-
2
2
  import sys
3
- from apsg.feature._geodata import Lineation, Foliation, Pair, Fault, Cone
3
+
4
4
  from apsg.feature._container import (
5
- FeatureSet,
6
- Vector2Set,
7
- Vector3Set,
8
- LineationSet,
9
- FoliationSet,
10
- PairSet,
11
- FaultSet,
5
+ ClusterSet,
12
6
  ConeSet,
7
+ Direction2Set,
13
8
  EllipseSet,
14
9
  EllipsoidSet,
10
+ FaultSet,
11
+ FeatureSet,
12
+ FoliationSet,
13
+ G,
14
+ LineationSet,
15
15
  OrientationTensor2Set,
16
16
  OrientationTensor3Set,
17
- G,
18
- ClusterSet,
19
- )
20
- from apsg.feature._tensor3 import (
21
- DeformationGradient3,
22
- VelocityGradient3,
23
- Stress3,
24
- Ellipsoid,
25
- OrientationTensor3,
17
+ PairSet,
18
+ Vector2Set,
19
+ Vector3Set,
26
20
  )
21
+ from apsg.feature._geodata import Cone, Direction, Fault, Foliation, Lineation, Pair
22
+ from apsg.feature._paleomag import Core
27
23
  from apsg.feature._tensor2 import (
28
24
  DeformationGradient2,
29
- VelocityGradient2,
30
- Stress2,
31
25
  Ellipse,
32
26
  OrientationTensor2,
27
+ Stress2,
28
+ VelocityGradient2,
29
+ )
30
+ from apsg.feature._tensor3 import (
31
+ DeformationGradient3,
32
+ Ellipsoid,
33
+ OrientationTensor3,
34
+ Stress3,
35
+ VelocityGradient3,
33
36
  )
34
- from apsg.feature._paleomag import Core
35
37
 
36
38
  __all__ = (
39
+ "Direction",
37
40
  "Lineation",
38
41
  "Foliation",
39
42
  "Pair",
@@ -50,6 +53,7 @@ __all__ = (
50
53
  "Ellipse",
51
54
  "OrientationTensor2",
52
55
  "Vector2Set",
56
+ "Direction2Set",
53
57
  "FeatureSet",
54
58
  "Vector3Set",
55
59
  "LineationSet",