cognite-neat 0.119.0__py3-none-any.whl → 0.119.1__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 cognite-neat might be problematic. Click here for more details.
- cognite/neat/_issues/_contextmanagers.py +3 -1
- cognite/neat/_issues/_factory.py +3 -6
- cognite/neat/_version.py +1 -1
- {cognite_neat-0.119.0.dist-info → cognite_neat-0.119.1.dist-info}/METADATA +1 -1
- {cognite_neat-0.119.0.dist-info → cognite_neat-0.119.1.dist-info}/RECORD +8 -8
- {cognite_neat-0.119.0.dist-info → cognite_neat-0.119.1.dist-info}/LICENSE +0 -0
- {cognite_neat-0.119.0.dist-info → cognite_neat-0.119.1.dist-info}/WHEEL +0 -0
- {cognite_neat-0.119.0.dist-info → cognite_neat-0.119.1.dist-info}/entry_points.txt +0 -0
|
@@ -20,7 +20,9 @@ def catch_warnings() -> Iterator[IssueList]:
|
|
|
20
20
|
yield issues
|
|
21
21
|
finally:
|
|
22
22
|
if warning_logger:
|
|
23
|
-
issues.extend(
|
|
23
|
+
issues.extend(
|
|
24
|
+
[from_warning(warning) for warning in warning_logger if from_warning(warning) is not None]
|
|
25
|
+
)
|
|
24
26
|
|
|
25
27
|
|
|
26
28
|
@contextmanager
|
cognite/neat/_issues/_factory.py
CHANGED
|
@@ -7,7 +7,6 @@ from cognite.neat._issues._base import NeatError, NeatWarning
|
|
|
7
7
|
from cognite.neat._utils.spreadsheet import SpreadsheetRead
|
|
8
8
|
|
|
9
9
|
from .errors import NeatValueError, SpreadsheetError
|
|
10
|
-
from .warnings import NeatValueWarning
|
|
11
10
|
|
|
12
11
|
|
|
13
12
|
def from_pydantic_errors(
|
|
@@ -23,13 +22,11 @@ def from_pydantic_errors(
|
|
|
23
22
|
]
|
|
24
23
|
|
|
25
24
|
|
|
26
|
-
def from_warning(warning: WarningMessage) -> NeatWarning:
|
|
25
|
+
def from_warning(warning: WarningMessage) -> NeatWarning | None:
|
|
27
26
|
if isinstance(warning.message, NeatWarning):
|
|
28
27
|
return warning.message
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
message += f" Source: {warning.source}"
|
|
32
|
-
return NeatValueWarning(message)
|
|
28
|
+
|
|
29
|
+
return None
|
|
33
30
|
|
|
34
31
|
|
|
35
32
|
def _from_pydantic_error(error: ErrorDetails, read_info_by_sheet: dict[str, SpreadsheetRead]) -> NeatError:
|
cognite/neat/_version.py
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
__version__ = "0.119.
|
|
1
|
+
__version__ = "0.119.1"
|
|
2
2
|
__engine__ = "^2.0.4"
|
|
@@ -57,8 +57,8 @@ cognite/neat/_graph/transformers/_rdfpath.py,sha256=9KCiq8UCeNWcV9VAmyV5gbqwmozU
|
|
|
57
57
|
cognite/neat/_graph/transformers/_value_type.py,sha256=9Ihk-NMra91c_KOKonKUNgZXwylSrE7pDluzd31NHfM,15797
|
|
58
58
|
cognite/neat/_issues/__init__.py,sha256=NQ-PN3fqp-hBPlpG2AZEND4cDn3_3UXAPfhLNtF5mtc,457
|
|
59
59
|
cognite/neat/_issues/_base.py,sha256=UDcx0s9_PqLD4z1NnOxI4wgsk2z6IiVCuJoG-V8aPyQ,11671
|
|
60
|
-
cognite/neat/_issues/_contextmanagers.py,sha256=
|
|
61
|
-
cognite/neat/_issues/_factory.py,sha256
|
|
60
|
+
cognite/neat/_issues/_contextmanagers.py,sha256=lfASjmq0wHHCJQtgChvOMFZGp_rL513baHSRXbW0ugU,1577
|
|
61
|
+
cognite/neat/_issues/_factory.py,sha256=-22ptgqVeqkaL7RqaIEexhXh3Z27dFvj7Q-9D0tu-4E,2811
|
|
62
62
|
cognite/neat/_issues/errors/__init__.py,sha256=1MK8nHFrN5c2Uiq9r4PkjL8GnBY7TGhcqGNkgQzVmKs,2359
|
|
63
63
|
cognite/neat/_issues/errors/_external.py,sha256=WISG6rA0GH7lD23hN7WDhDIfOh9QrsXUDSxMCkTcBj4,2210
|
|
64
64
|
cognite/neat/_issues/errors/_general.py,sha256=MnBm9V1S-Agr9kUfTMvviBB4_NkuOXamlgJCu2UojEM,849
|
|
@@ -177,10 +177,10 @@ cognite/neat/_utils/text.py,sha256=9T0mzcNn6J9X8DriNntLN5ThCXOWbU1BYareukbLT7A,8
|
|
|
177
177
|
cognite/neat/_utils/time_.py,sha256=7ayUm0OWZm1JDmy32E4ip8WRr2o0GLwrHwJA8sJ43Z4,357
|
|
178
178
|
cognite/neat/_utils/upload.py,sha256=xWtM6mFuD2QYQHaZ7zCAuGptbEpPIxcH-raWQu93-Ug,5845
|
|
179
179
|
cognite/neat/_utils/xml_.py,sha256=FQkq84u35MUsnKcL6nTMJ9ajtG9D5i1u4VBnhGqP2DQ,1710
|
|
180
|
-
cognite/neat/_version.py,sha256=
|
|
180
|
+
cognite/neat/_version.py,sha256=PmwQMm2xpu25bGSQZn5n0s1kkl4epWM68bMMNxSbKEs,46
|
|
181
181
|
cognite/neat/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
182
|
-
cognite_neat-0.119.
|
|
183
|
-
cognite_neat-0.119.
|
|
184
|
-
cognite_neat-0.119.
|
|
185
|
-
cognite_neat-0.119.
|
|
186
|
-
cognite_neat-0.119.
|
|
182
|
+
cognite_neat-0.119.1.dist-info/LICENSE,sha256=W8VmvFia4WHa3Gqxq1Ygrq85McUNqIGDVgtdvzT-XqA,11351
|
|
183
|
+
cognite_neat-0.119.1.dist-info/METADATA,sha256=uTVeDmlTuWj0Br_wMxYzmBrT8aO2ZINIypUKtBqmc78,5421
|
|
184
|
+
cognite_neat-0.119.1.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
|
|
185
|
+
cognite_neat-0.119.1.dist-info/entry_points.txt,sha256=SsQlnl8SNMSSjE3acBI835JYFtsIinLSbVmHmMEXv6E,51
|
|
186
|
+
cognite_neat-0.119.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|