sgf-parser 0.0.1b5__tar.gz → 0.0.2__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.
- {sgf_parser-0.0.1b5 → sgf_parser-0.0.2}/PKG-INFO +3 -3
- {sgf_parser-0.0.1b5 → sgf_parser-0.0.2}/pyproject.toml +3 -3
- {sgf_parser-0.0.1b5 → sgf_parser-0.0.2}/src/sgf_parser/models/method_dp.py +1 -0
- {sgf_parser-0.0.1b5 → sgf_parser-0.0.2}/src/sgf_parser/models/method_srs.py +4 -2
- {sgf_parser-0.0.1b5 → sgf_parser-0.0.2}/src/sgf_parser/parser.py +8 -5
- {sgf_parser-0.0.1b5 → sgf_parser-0.0.2}/LICENSE +0 -0
- {sgf_parser-0.0.1b5 → sgf_parser-0.0.2}/README.md +0 -0
- {sgf_parser-0.0.1b5 → sgf_parser-0.0.2}/src/sgf_parser/__init__.py +0 -0
- {sgf_parser-0.0.1b5 → sgf_parser-0.0.2}/src/sgf_parser/datetime_parser.py +0 -0
- {sgf_parser-0.0.1b5 → sgf_parser-0.0.2}/src/sgf_parser/models/__init__.py +0 -0
- {sgf_parser-0.0.1b5 → sgf_parser-0.0.2}/src/sgf_parser/models/method.py +0 -0
- {sgf_parser-0.0.1b5 → sgf_parser-0.0.2}/src/sgf_parser/models/method_cpt.py +0 -0
- {sgf_parser-0.0.1b5 → sgf_parser-0.0.2}/src/sgf_parser/models/method_dt.py +0 -0
- {sgf_parser-0.0.1b5 → sgf_parser-0.0.2}/src/sgf_parser/models/method_rp.py +0 -0
- {sgf_parser-0.0.1b5 → sgf_parser-0.0.2}/src/sgf_parser/models/method_svt.py +0 -0
- {sgf_parser-0.0.1b5 → sgf_parser-0.0.2}/src/sgf_parser/models/method_tot.py +0 -0
- {sgf_parser-0.0.1b5 → sgf_parser-0.0.2}/src/sgf_parser/models/method_type.py +0 -0
- {sgf_parser-0.0.1b5 → sgf_parser-0.0.2}/src/sgf_parser/models/method_wst.py +0 -0
- {sgf_parser-0.0.1b5 → sgf_parser-0.0.2}/src/sgf_parser/models/types.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: sgf-parser
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.2
|
|
4
4
|
Summary: Parser for the Swedish Geotechnical Society / Svenska Geotekniska Föreningen (SGF) data format
|
|
5
5
|
Home-page: https://github.com/norwegian-geotechnical-institute/sgf-parser
|
|
6
6
|
License: MIT
|
|
@@ -16,9 +16,9 @@ Classifier: Programming Language :: Python :: 3
|
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.11
|
|
17
17
|
Classifier: Programming Language :: Python :: 3.12
|
|
18
18
|
Classifier: Topic :: Scientific/Engineering :: GIS
|
|
19
|
-
Requires-Dist: pydantic (>=2.
|
|
19
|
+
Requires-Dist: pydantic (>=2.8.2,<3.0.0)
|
|
20
20
|
Requires-Dist: python-dateutil (>=2.9.0.post0,<3.0.0)
|
|
21
|
-
Requires-Dist: types-python-dateutil (>=2.
|
|
21
|
+
Requires-Dist: types-python-dateutil (>=2.9,<3.0)
|
|
22
22
|
Project-URL: Repository, https://github.com/norwegian-geotechnical-institute/sgf-parser
|
|
23
23
|
Description-Content-Type: text/markdown
|
|
24
24
|
|
|
@@ -15,7 +15,7 @@ exclude = '''
|
|
|
15
15
|
|
|
16
16
|
[tool.poetry]
|
|
17
17
|
name = "sgf-parser"
|
|
18
|
-
version = "0.0.
|
|
18
|
+
version = "0.0.2"
|
|
19
19
|
description = "Parser for the Swedish Geotechnical Society / Svenska Geotekniska Föreningen (SGF) data format"
|
|
20
20
|
license = "MIT"
|
|
21
21
|
authors = ["Jostein Leira <jostein@leira.net>"]
|
|
@@ -58,9 +58,9 @@ no_implicit_reexport = false
|
|
|
58
58
|
|
|
59
59
|
[tool.poetry.dependencies]
|
|
60
60
|
python = ">=3.11,<4"
|
|
61
|
-
pydantic = "^2.
|
|
61
|
+
pydantic = "^2.8.2"
|
|
62
62
|
python-dateutil = "^2.9.0.post0"
|
|
63
|
-
types-python-dateutil = "^2.
|
|
63
|
+
types-python-dateutil = "^2.9"
|
|
64
64
|
|
|
65
65
|
|
|
66
66
|
[tool.poetry.group.dev.dependencies]
|
|
@@ -14,8 +14,8 @@ class MethodSRSData(MethodData):
|
|
|
14
14
|
Sounding classes:
|
|
15
15
|
|
|
16
16
|
12 (Jb-1)
|
|
17
|
-
41 (Jb-2)
|
|
18
|
-
42 (Jb-3)
|
|
17
|
+
41 71 (Jb-2)
|
|
18
|
+
42 72 (Jb-3)
|
|
19
19
|
73 (Jb-tot)
|
|
20
20
|
|
|
21
21
|
"""
|
|
@@ -83,7 +83,9 @@ class MethodSRS(Method):
|
|
|
83
83
|
data["sounding_class"] = {
|
|
84
84
|
"12": SoundingClass.JB1,
|
|
85
85
|
"41": SoundingClass.JB2,
|
|
86
|
+
"71": SoundingClass.JB2,
|
|
86
87
|
"42": SoundingClass.JB3,
|
|
88
|
+
"72": SoundingClass.JB3,
|
|
87
89
|
"73": SoundingClass.JBTOT,
|
|
88
90
|
}[data["HM"]]
|
|
89
91
|
|
|
@@ -20,26 +20,29 @@ class Parser:
|
|
|
20
20
|
"""
|
|
21
21
|
|
|
22
22
|
method_code_class_mapping = {
|
|
23
|
-
"7": models.MethodCPT,
|
|
24
23
|
"07": models.MethodCPT,
|
|
25
24
|
"101": models.MethodWST,
|
|
26
25
|
"102": models.MethodWST,
|
|
27
26
|
"107A": models.MethodCPT,
|
|
28
27
|
"107B": models.MethodCPT,
|
|
29
|
-
"8": models.MethodDP,
|
|
30
28
|
"108A": models.MethodDP,
|
|
31
29
|
"108B": models.MethodDP,
|
|
32
30
|
"108C": models.MethodDP,
|
|
33
31
|
"108D": models.MethodDP,
|
|
34
32
|
"108E": models.MethodDP,
|
|
33
|
+
"12": models.MethodSRS,
|
|
34
|
+
"13": models.MethodSVT,
|
|
35
35
|
"23": models.MethodRP,
|
|
36
36
|
"24": models.MethodTOT,
|
|
37
|
-
"
|
|
37
|
+
"35": models.MethodDT,
|
|
38
38
|
"41": models.MethodSRS,
|
|
39
39
|
"42": models.MethodSRS,
|
|
40
|
+
"7": models.MethodCPT,
|
|
41
|
+
"71": models.MethodSRS,
|
|
42
|
+
"72": models.MethodSRS,
|
|
40
43
|
"73": models.MethodSRS,
|
|
41
|
-
"
|
|
42
|
-
"
|
|
44
|
+
"8": models.MethodDP,
|
|
45
|
+
"9": models.MethodDP,
|
|
43
46
|
}
|
|
44
47
|
|
|
45
48
|
def parse(self, file: TextIO) -> list[Method]:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|