mat3ra-esse 2024.12.19.post1__py3-none-any.whl → 2025.1.27.post0__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 mat3ra-esse might be problematic. Click here for more details.

Files changed (80) hide show
  1. mat3ra/esse/data/examples.py +1 -1
  2. mat3ra/esse/data/properties.py +2 -2
  3. mat3ra/esse/data/schemas.py +1 -1
  4. mat3ra/esse/models/core/reference/__init__.py +1 -1
  5. mat3ra/esse/models/core/reference/modeling/__init__.py +1 -1
  6. mat3ra/esse/models/core/reference/modeling/exabyte.py +1 -1
  7. mat3ra/esse/models/element.py +4 -4
  8. mat3ra/esse/models/in_memory_entity/base.py +1 -34
  9. mat3ra/esse/models/in_memory_entity/defaultable.py +1 -34
  10. mat3ra/esse/models/in_memory_entity/has_consistency_check_has_metadata_named_defaultable.py +61 -0
  11. mat3ra/esse/models/in_memory_entity/named.py +1 -34
  12. mat3ra/esse/models/in_memory_entity/named_defaultable.py +1 -34
  13. mat3ra/esse/models/in_memory_entity/named_defaultable_has_metadata.py +1 -34
  14. mat3ra/esse/models/in_memory_entity/named_defaultable_runtime_items.py +0 -33
  15. mat3ra/esse/models/job/__init__.py +3 -617
  16. mat3ra/esse/models/job/base.py +1 -33
  17. mat3ra/esse/models/material/__init__.py +14 -14
  18. mat3ra/esse/models/material/consistency_check.py +40 -0
  19. mat3ra/esse/models/project.py +0 -33
  20. mat3ra/esse/models/properties_directory/derived_properties.py +6 -6
  21. mat3ra/esse/models/properties_directory/non_scalar/total_energy_contributions.py +26 -26
  22. mat3ra/esse/models/properties_directory/structural/molecular_pattern.py +4 -4
  23. mat3ra/esse/models/property/base/__init__.py +0 -32
  24. mat3ra/esse/models/property/meta/__init__.py +0 -32
  25. mat3ra/esse/models/property/raw/__init__.py +0 -32
  26. mat3ra/esse/models/software/application.py +1 -34
  27. mat3ra/esse/models/software/executable.py +0 -33
  28. mat3ra/esse/models/software/flavor.py +0 -33
  29. mat3ra/esse/models/software/template.py +0 -33
  30. mat3ra/esse/models/software_directory/ml/unit/execution/__init__.py +3 -488
  31. mat3ra/esse/models/software_directory/ml/unit/execution/evaluate/cross_validate.py +0 -92
  32. mat3ra/esse/models/software_directory/ml/unit/execution/initialize.py +0 -92
  33. mat3ra/esse/models/software_directory/ml/unit/execution/score.py +0 -92
  34. mat3ra/esse/models/software_directory/ml/unit/execution/train.py +0 -92
  35. mat3ra/esse/models/software_directory/ml/unit/processing/__init__.py +0 -52
  36. mat3ra/esse/models/software_directory/ml/unit/processing/data_transformation/__init__.py +0 -32
  37. mat3ra/esse/models/software_directory/ml/unit/processing/data_transformation/manipulation.py +0 -32
  38. mat3ra/esse/models/software_directory/ml/unit/processing/data_transformation/scale_and_reduce.py +0 -32
  39. mat3ra/esse/models/software_directory/ml/unit/processing/feature_selection/__init__.py +0 -32
  40. mat3ra/esse/models/software_directory/ml/unit/processing/feature_selection/filter_based.py +0 -32
  41. mat3ra/esse/models/software_directory/modeling/deepmd.py +1 -33
  42. mat3ra/esse/models/software_directory/modeling/nwchem.py +1 -33
  43. mat3ra/esse/models/software_directory/modeling/unit/execution.py +0 -92
  44. mat3ra/esse/models/software_directory/modeling/vasp.py +1 -33
  45. mat3ra/esse/models/software_directory/scripting/jupyter_lab.py +1 -33
  46. mat3ra/esse/models/software_directory/scripting/python.py +0 -32
  47. mat3ra/esse/models/software_directory/scripting/shell.py +1 -33
  48. mat3ra/esse/models/software_directory/scripting/unit/execution.py +0 -92
  49. mat3ra/esse/models/system/_material.py +1 -1
  50. mat3ra/esse/models/system/_parent_job.py +1 -1
  51. mat3ra/esse/models/system/_project.py +1 -1
  52. mat3ra/esse/models/system/consistency_check.py +1 -7
  53. mat3ra/esse/models/system/creator.py +1 -1
  54. mat3ra/esse/models/system/creator_account.py +1 -1
  55. mat3ra/esse/models/system/description.py +1 -1
  56. mat3ra/esse/models/system/entity_reference.py +1 -1
  57. mat3ra/esse/models/system/has_consistency_check.py +39 -0
  58. mat3ra/esse/models/system/in_set.py +1 -1
  59. mat3ra/esse/models/system/job_extended.py +1 -1
  60. mat3ra/esse/models/system/owner.py +1 -1
  61. mat3ra/esse/models/workflow/__init__.py +2 -596
  62. mat3ra/esse/models/workflow/base.py +0 -33
  63. mat3ra/esse/models/workflow/subworkflow/__init__.py +1 -284
  64. mat3ra/esse/models/workflow/subworkflow/unit.py +0 -212
  65. mat3ra/esse/models/workflow/unit/__init__.py +0 -252
  66. mat3ra/esse/models/workflow/unit/assertion.py +0 -32
  67. mat3ra/esse/models/workflow/unit/assignment.py +0 -32
  68. mat3ra/esse/models/workflow/unit/base.py +0 -32
  69. mat3ra/esse/models/workflow/unit/condition.py +0 -32
  70. mat3ra/esse/models/workflow/unit/execution.py +0 -92
  71. mat3ra/esse/models/workflow/unit/io/__init__.py +0 -32
  72. mat3ra/esse/models/workflow/unit/map.py +0 -32
  73. mat3ra/esse/models/workflow/unit/processing.py +0 -32
  74. mat3ra/esse/models/workflow/unit/reduce.py +0 -32
  75. mat3ra/esse/models/workflow/unit/subworkflow.py +0 -32
  76. {mat3ra_esse-2024.12.19.post1.dist-info → mat3ra_esse-2025.1.27.post0.dist-info}/METADATA +2 -2
  77. {mat3ra_esse-2024.12.19.post1.dist-info → mat3ra_esse-2025.1.27.post0.dist-info}/RECORD +80 -77
  78. {mat3ra_esse-2024.12.19.post1.dist-info → mat3ra_esse-2025.1.27.post0.dist-info}/WHEEL +1 -1
  79. {mat3ra_esse-2024.12.19.post1.dist-info → mat3ra_esse-2025.1.27.post0.dist-info}/LICENSE.md +0 -0
  80. {mat3ra_esse-2024.12.19.post1.dist-info → mat3ra_esse-2025.1.27.post0.dist-info}/top_level.txt +0 -0
@@ -175,7 +175,7 @@ class ComputeArgumentsSchema(BaseModel):
175
175
 
176
176
 
177
177
  class EntityReferenceSchema(BaseModel):
178
- field_id: Optional[str] = Field(None, alias="_id")
178
+ field_id: str = Field(..., alias="_id")
179
179
  """
180
180
  entity identity
181
181
  """
@@ -199,37 +199,6 @@ class ScopeTrackItem(BaseModel):
199
199
  scope: Optional[WorkflowScopeSchema] = Field(None, title="workflow scope schema")
200
200
 
201
201
 
202
- class Name(Enum):
203
- default = "default"
204
- atomsTooClose = "atomsTooClose"
205
- atomsOverlap = "atomsOverlap"
206
-
207
-
208
- class Severity(Enum):
209
- info = "info"
210
- warning = "warning"
211
- error = "error"
212
-
213
-
214
- class ConsistencyCheck(BaseModel):
215
- key: str
216
- """
217
- Key of the property of the entity on which the consistency check is performed in Mongo dot notation, e.g. 'basis.coordinates.1'
218
- """
219
- name: Name
220
- """
221
- Name of the consistency check that is performed, which is listed in an enum.
222
- """
223
- severity: Severity
224
- """
225
- Severity level of the problem, which is used in UI to differentiate.
226
- """
227
- message: str
228
- """
229
- Message generated by the consistency check describing the problem.
230
- """
231
-
232
-
233
202
  class JobBaseSchema(BaseModel):
234
203
  rmsId: Optional[str] = None
235
204
  """
@@ -271,7 +240,6 @@ class JobBaseSchema(BaseModel):
271
240
  entity slug
272
241
  """
273
242
  systemName: Optional[str] = None
274
- consistencyChecks: Optional[List[ConsistencyCheck]] = None
275
243
  schemaVersion: Optional[str] = "2022.8.16"
276
244
  """
277
245
  entity's schema version. Used to distinct between different schemas.
@@ -161,7 +161,7 @@ class LatticeSchema(BaseModel):
161
161
  """
162
162
 
163
163
 
164
- class Name128(Enum):
164
+ class Name47(Enum):
165
165
  volume = "volume"
166
166
 
167
167
 
@@ -175,7 +175,7 @@ class VolumeSchema(BaseModel):
175
175
  value: float
176
176
 
177
177
 
178
- class Name129(Enum):
178
+ class Name48(Enum):
179
179
  density = "density"
180
180
 
181
181
 
@@ -198,7 +198,7 @@ class ScalarSchema(BaseModel):
198
198
  value: float
199
199
 
200
200
 
201
- class Name130(Enum):
201
+ class Name49(Enum):
202
202
  symmetry = "symmetry"
203
203
 
204
204
 
@@ -218,7 +218,7 @@ class SymmetrySchema(BaseModel):
218
218
  name: Literal["2#-datamodel-code-generator-#-object-#-special-#"]
219
219
 
220
220
 
221
- class Name131(Enum):
221
+ class Name50(Enum):
222
222
  elemental_ratio = "elemental_ratio"
223
223
 
224
224
 
@@ -231,7 +231,7 @@ class ElementalRatio(BaseModel):
231
231
  """
232
232
 
233
233
 
234
- class Name132(Enum):
234
+ class Name51(Enum):
235
235
  p_norm = "p-norm"
236
236
 
237
237
 
@@ -244,7 +244,7 @@ class PNorm(BaseModel):
244
244
  value: float
245
245
 
246
246
 
247
- class Name133(Enum):
247
+ class Name52(Enum):
248
248
  inchi = "inchi"
249
249
 
250
250
 
@@ -253,7 +253,7 @@ class InChIRepresentationSchema(BaseModel):
253
253
  value: str
254
254
 
255
255
 
256
- class Name134(Enum):
256
+ class Name53(Enum):
257
257
  inchi_key = "inchi_key"
258
258
 
259
259
 
@@ -332,7 +332,7 @@ class FileSourceSchema(BaseModel):
332
332
  """
333
333
 
334
334
 
335
- class Name135(Enum):
335
+ class Name54(Enum):
336
336
  default = "default"
337
337
  atomsTooClose = "atomsTooClose"
338
338
  atomsOverlap = "atomsOverlap"
@@ -344,14 +344,14 @@ class Severity(Enum):
344
344
  error = "error"
345
345
 
346
346
 
347
- class ConsistencyCheck(BaseModel):
348
- key: str
347
+ class MaterialConsistencyCheckSchema(BaseModel):
348
+ name: Name54
349
349
  """
350
- Key of the property of the entity on which the consistency check is performed in Mongo dot notation, e.g. 'basis.coordinates.1'
350
+ Name of the consistency check that is performed, which is listed in an enum.
351
351
  """
352
- name: Name135
352
+ key: str
353
353
  """
354
- Name of the consistency check that is performed, which is listed in an enum.
354
+ Key of the property of the entity on which the consistency check is performed in Mongo dot notation, e.g. 'basis.coordinates.1'
355
355
  """
356
356
  severity: Severity
357
357
  """
@@ -395,6 +395,7 @@ class MaterialSchema(BaseModel):
395
395
  """
396
396
  Whether to work in the finite molecular picture (usually with atomic orbital basis)
397
397
  """
398
+ consistencyChecks: Optional[List[MaterialConsistencyCheckSchema]] = None
398
399
  field_id: Optional[str] = Field(None, alias="_id")
399
400
  """
400
401
  entity identity
@@ -404,7 +405,6 @@ class MaterialSchema(BaseModel):
404
405
  entity slug
405
406
  """
406
407
  systemName: Optional[str] = None
407
- consistencyChecks: Optional[List[ConsistencyCheck]] = None
408
408
  schemaVersion: Optional[str] = "2022.8.16"
409
409
  """
410
410
  entity's schema version. Used to distinct between different schemas.
@@ -0,0 +1,40 @@
1
+ # generated by datamodel-codegen:
2
+ # filename: material/consistency_check.json
3
+ # version: 0.25.5
4
+
5
+ from __future__ import annotations
6
+
7
+ from enum import Enum
8
+
9
+ from pydantic import BaseModel
10
+
11
+
12
+ class Name(Enum):
13
+ default = "default"
14
+ atomsTooClose = "atomsTooClose"
15
+ atomsOverlap = "atomsOverlap"
16
+
17
+
18
+ class Severity(Enum):
19
+ info = "info"
20
+ warning = "warning"
21
+ error = "error"
22
+
23
+
24
+ class MaterialConsistencyCheckSchema(BaseModel):
25
+ name: Name
26
+ """
27
+ Name of the consistency check that is performed, which is listed in an enum.
28
+ """
29
+ key: str
30
+ """
31
+ Key of the property of the entity on which the consistency check is performed in Mongo dot notation, e.g. 'basis.coordinates.1'
32
+ """
33
+ severity: Severity
34
+ """
35
+ Severity level of the problem, which is used in UI to differentiate.
36
+ """
37
+ message: str
38
+ """
39
+ Message generated by the consistency check describing the problem.
40
+ """
@@ -4,7 +4,6 @@
4
4
 
5
5
  from __future__ import annotations
6
6
 
7
- from enum import Enum
8
7
  from typing import Any, Dict, List, Optional
9
8
 
10
9
  from pydantic import BaseModel, Field
@@ -16,37 +15,6 @@ class ClusterBasedChargeRate(BaseModel):
16
15
  hostname: Optional[str] = None
17
16
 
18
17
 
19
- class Name(Enum):
20
- default = "default"
21
- atomsTooClose = "atomsTooClose"
22
- atomsOverlap = "atomsOverlap"
23
-
24
-
25
- class Severity(Enum):
26
- info = "info"
27
- warning = "warning"
28
- error = "error"
29
-
30
-
31
- class ConsistencyCheck(BaseModel):
32
- key: str
33
- """
34
- Key of the property of the entity on which the consistency check is performed in Mongo dot notation, e.g. 'basis.coordinates.1'
35
- """
36
- name: Name
37
- """
38
- Name of the consistency check that is performed, which is listed in an enum.
39
- """
40
- severity: Severity
41
- """
42
- Severity level of the problem, which is used in UI to differentiate.
43
- """
44
- message: str
45
- """
46
- Message generated by the consistency check describing the problem.
47
- """
48
-
49
-
50
18
  class ProjectSchema(BaseModel):
51
19
  gid: Optional[float] = None
52
20
  """
@@ -66,7 +34,6 @@ class ProjectSchema(BaseModel):
66
34
  entity slug
67
35
  """
68
36
  systemName: Optional[str] = None
69
- consistencyChecks: Optional[List[ConsistencyCheck]] = None
70
37
  schemaVersion: Optional[str] = "2022.8.16"
71
38
  """
72
39
  entity's schema version. Used to distinct between different schemas.
@@ -25,7 +25,7 @@ class VolumeSchema(BaseModel):
25
25
  value: float
26
26
 
27
27
 
28
- class Name29(Enum):
28
+ class Name13(Enum):
29
29
  density = "density"
30
30
 
31
31
 
@@ -48,7 +48,7 @@ class ScalarSchema(BaseModel):
48
48
  value: float
49
49
 
50
50
 
51
- class Name30(Enum):
51
+ class Name14(Enum):
52
52
  symmetry = "symmetry"
53
53
 
54
54
 
@@ -68,7 +68,7 @@ class SymmetrySchema(BaseModel):
68
68
  name: Literal["2#-datamodel-code-generator-#-object-#-special-#"]
69
69
 
70
70
 
71
- class Name31(Enum):
71
+ class Name15(Enum):
72
72
  elemental_ratio = "elemental_ratio"
73
73
 
74
74
 
@@ -81,7 +81,7 @@ class ElementalRatio(BaseModel):
81
81
  """
82
82
 
83
83
 
84
- class Name32(Enum):
84
+ class Name16(Enum):
85
85
  p_norm = "p-norm"
86
86
 
87
87
 
@@ -94,7 +94,7 @@ class PNorm(BaseModel):
94
94
  value: float
95
95
 
96
96
 
97
- class Name33(Enum):
97
+ class Name17(Enum):
98
98
  inchi = "inchi"
99
99
 
100
100
 
@@ -103,7 +103,7 @@ class InChIRepresentationSchema(BaseModel):
103
103
  value: str
104
104
 
105
105
 
106
- class Name34(Enum):
106
+ class Name18(Enum):
107
107
  inchi_key = "inchi_key"
108
108
 
109
109
 
@@ -19,115 +19,115 @@ class ScalarSchema(BaseModel):
19
19
  value: float
20
20
 
21
21
 
22
- class Name190(Enum):
22
+ class Name77(Enum):
23
23
  harris_foulkes = "harris_foulkes"
24
24
 
25
25
 
26
26
  class ScalarSchema6(BaseModel):
27
- name: Optional[Name190] = None
27
+ name: Optional[Name77] = None
28
28
  value: float
29
29
 
30
30
 
31
- class Name191(Enum):
31
+ class Name78(Enum):
32
32
  one_electron = "one_electron"
33
33
 
34
34
 
35
35
  class ScalarSchema7(BaseModel):
36
- name: Optional[Name191] = None
36
+ name: Optional[Name78] = None
37
37
  value: float
38
38
 
39
39
 
40
- class Name192(Enum):
40
+ class Name79(Enum):
41
41
  hartree = "hartree"
42
42
 
43
43
 
44
44
  class ScalarSchema8(BaseModel):
45
- name: Optional[Name192] = None
45
+ name: Optional[Name79] = None
46
46
  value: float
47
47
 
48
48
 
49
- class Name193(Enum):
49
+ class Name80(Enum):
50
50
  exchange = "exchange"
51
51
 
52
52
 
53
53
  class ScalarSchema9(BaseModel):
54
- name: Optional[Name193] = None
54
+ name: Optional[Name80] = None
55
55
  value: float
56
56
 
57
57
 
58
- class Name194(Enum):
58
+ class Name81(Enum):
59
59
  exchange_correlation = "exchange_correlation"
60
60
 
61
61
 
62
62
  class ScalarSchema10(BaseModel):
63
- name: Optional[Name194] = None
63
+ name: Optional[Name81] = None
64
64
  value: float
65
65
 
66
66
 
67
- class Name195(Enum):
67
+ class Name82(Enum):
68
68
  ewald = "ewald"
69
69
 
70
70
 
71
71
  class ScalarSchema11(BaseModel):
72
- name: Optional[Name195] = None
72
+ name: Optional[Name82] = None
73
73
  value: float
74
74
 
75
75
 
76
- class Name196(Enum):
76
+ class Name83(Enum):
77
77
  alphaZ = "alphaZ"
78
78
 
79
79
 
80
80
  class ScalarSchema12(BaseModel):
81
- name: Optional[Name196] = None
81
+ name: Optional[Name83] = None
82
82
  value: float
83
83
 
84
84
 
85
- class Name197(Enum):
85
+ class Name84(Enum):
86
86
  atomic_energy = "atomic_energy"
87
87
 
88
88
 
89
89
  class ScalarSchema13(BaseModel):
90
- name: Optional[Name197] = None
90
+ name: Optional[Name84] = None
91
91
  value: float
92
92
 
93
93
 
94
- class Name198(Enum):
94
+ class Name85(Enum):
95
95
  eigenvalues = "eigenvalues"
96
96
 
97
97
 
98
98
  class ScalarSchema14(BaseModel):
99
- name: Optional[Name198] = None
99
+ name: Optional[Name85] = None
100
100
  value: float
101
101
 
102
102
 
103
- class Name199(Enum):
103
+ class Name86(Enum):
104
104
  PAW_double_counting_correction_2 = "PAW_double-counting_correction_2"
105
105
 
106
106
 
107
107
  class ScalarSchema15(BaseModel):
108
- name: Optional[Name199] = None
108
+ name: Optional[Name86] = None
109
109
  value: float
110
110
 
111
111
 
112
- class Name200(Enum):
112
+ class Name87(Enum):
113
113
  PAW_double_counting_correction_3 = "PAW_double-counting_correction_3"
114
114
 
115
115
 
116
116
  class ScalarSchema16(BaseModel):
117
- name: Optional[Name200] = None
117
+ name: Optional[Name87] = None
118
118
  value: float
119
119
 
120
120
 
121
- class Name201(Enum):
121
+ class Name88(Enum):
122
122
  hartree_fock = "hartree_fock"
123
123
 
124
124
 
125
125
  class ScalarSchema17(BaseModel):
126
- name: Optional[Name201] = None
126
+ name: Optional[Name88] = None
127
127
  value: float
128
128
 
129
129
 
130
- class Name202(Enum):
130
+ class Name89(Enum):
131
131
  total_energy_contributions = "total_energy_contributions"
132
132
 
133
133
 
@@ -194,5 +194,5 @@ class TotalEnergyContributionsSchema(BaseModel):
194
194
  """
195
195
  hartree-fock contribution
196
196
  """
197
- name: Optional[Name202] = None
197
+ name: Optional[Name89] = None
198
198
  units: Optional[Units] = None
@@ -37,12 +37,12 @@ class FunctionalGroupPatternSchema(BaseModel):
37
37
  """
38
38
 
39
39
 
40
- class Name139(Enum):
40
+ class Name57(Enum):
41
41
  ring = "ring"
42
42
 
43
43
 
44
44
  class RingPatternSchema(BaseModel):
45
- name: Optional[Name139] = None
45
+ name: Optional[Name57] = None
46
46
  atoms: Optional[List[AtomicId]] = Field(None, title="atomic ids")
47
47
  """
48
48
  array of objects containing integer id each
@@ -50,12 +50,12 @@ class RingPatternSchema(BaseModel):
50
50
  isAromatic: Optional[bool] = None
51
51
 
52
52
 
53
- class Name140(Enum):
53
+ class Name58(Enum):
54
54
  special_bond = "special_bond"
55
55
 
56
56
 
57
57
  class SpecialBondPatternSchema(BaseModel):
58
- name: Optional[Name140] = None
58
+ name: Optional[Name58] = None
59
59
  atoms: Optional[List[AtomicId]] = Field(None, title="atomic ids")
60
60
  """
61
61
  array of objects containing integer id each
@@ -159,37 +159,6 @@ class SystemTag(Enum):
159
159
  isBest = "isBest"
160
160
 
161
161
 
162
- class Name(Enum):
163
- default = "default"
164
- atomsTooClose = "atomsTooClose"
165
- atomsOverlap = "atomsOverlap"
166
-
167
-
168
- class Severity(Enum):
169
- info = "info"
170
- warning = "warning"
171
- error = "error"
172
-
173
-
174
- class ConsistencyCheck(BaseModel):
175
- key: str
176
- """
177
- Key of the property of the entity on which the consistency check is performed in Mongo dot notation, e.g. 'basis.coordinates.1'
178
- """
179
- name: Name
180
- """
181
- Name of the consistency check that is performed, which is listed in an enum.
182
- """
183
- severity: Severity
184
- """
185
- Severity level of the problem, which is used in UI to differentiate.
186
- """
187
- message: str
188
- """
189
- Message generated by the consistency check describing the problem.
190
- """
191
-
192
-
193
162
  class SchemaOfBaseMaterialSPreliminaryProperty(BaseModel):
194
163
  slug: Optional[str] = None
195
164
  """
@@ -225,7 +194,6 @@ class SchemaOfBaseMaterialSPreliminaryProperty(BaseModel):
225
194
  entity identity
226
195
  """
227
196
  systemName: Optional[str] = None
228
- consistencyChecks: Optional[List[ConsistencyCheck]] = None
229
197
  schemaVersion: Optional[str] = "2022.8.16"
230
198
  """
231
199
  entity's schema version. Used to distinct between different schemas.
@@ -159,37 +159,6 @@ class SystemTag(Enum):
159
159
  isBest = "isBest"
160
160
 
161
161
 
162
- class Name(Enum):
163
- default = "default"
164
- atomsTooClose = "atomsTooClose"
165
- atomsOverlap = "atomsOverlap"
166
-
167
-
168
- class Severity(Enum):
169
- info = "info"
170
- warning = "warning"
171
- error = "error"
172
-
173
-
174
- class ConsistencyCheck(BaseModel):
175
- key: str
176
- """
177
- Key of the property of the entity on which the consistency check is performed in Mongo dot notation, e.g. 'basis.coordinates.1'
178
- """
179
- name: Name
180
- """
181
- Name of the consistency check that is performed, which is listed in an enum.
182
- """
183
- severity: Severity
184
- """
185
- Severity level of the problem, which is used in UI to differentiate.
186
- """
187
- message: str
188
- """
189
- Message generated by the consistency check describing the problem.
190
- """
191
-
192
-
193
162
  class SchemaOfMaterialSMetaProperties(BaseModel):
194
163
  slug: Optional[str] = None
195
164
  """
@@ -225,7 +194,6 @@ class SchemaOfMaterialSMetaProperties(BaseModel):
225
194
  entity identity
226
195
  """
227
196
  systemName: Optional[str] = None
228
- consistencyChecks: Optional[List[ConsistencyCheck]] = None
229
197
  schemaVersion: Optional[str] = "2022.8.16"
230
198
  """
231
199
  entity's schema version. Used to distinct between different schemas.
@@ -159,37 +159,6 @@ class SystemTag(Enum):
159
159
  isBest = "isBest"
160
160
 
161
161
 
162
- class Name(Enum):
163
- default = "default"
164
- atomsTooClose = "atomsTooClose"
165
- atomsOverlap = "atomsOverlap"
166
-
167
-
168
- class Severity(Enum):
169
- info = "info"
170
- warning = "warning"
171
- error = "error"
172
-
173
-
174
- class ConsistencyCheck(BaseModel):
175
- key: str
176
- """
177
- Key of the property of the entity on which the consistency check is performed in Mongo dot notation, e.g. 'basis.coordinates.1'
178
- """
179
- name: Name
180
- """
181
- Name of the consistency check that is performed, which is listed in an enum.
182
- """
183
- severity: Severity
184
- """
185
- Severity level of the problem, which is used in UI to differentiate.
186
- """
187
- message: str
188
- """
189
- Message generated by the consistency check describing the problem.
190
- """
191
-
192
-
193
162
  class SchemaOfMaterialSPreliminaryProperty(BaseModel):
194
163
  slug: Optional[str] = None
195
164
  """
@@ -225,7 +194,6 @@ class SchemaOfMaterialSPreliminaryProperty(BaseModel):
225
194
  entity identity
226
195
  """
227
196
  systemName: Optional[str] = None
228
- consistencyChecks: Optional[List[ConsistencyCheck]] = None
229
197
  schemaVersion: Optional[str] = "2022.8.16"
230
198
  """
231
199
  entity's schema version. Used to distinct between different schemas.
@@ -4,43 +4,11 @@
4
4
 
5
5
  from __future__ import annotations
6
6
 
7
- from enum import Enum
8
- from typing import List, Optional
7
+ from typing import Optional
9
8
 
10
9
  from pydantic import BaseModel, ConfigDict, Field
11
10
 
12
11
 
13
- class Name(Enum):
14
- default = "default"
15
- atomsTooClose = "atomsTooClose"
16
- atomsOverlap = "atomsOverlap"
17
-
18
-
19
- class Severity(Enum):
20
- info = "info"
21
- warning = "warning"
22
- error = "error"
23
-
24
-
25
- class ConsistencyCheck(BaseModel):
26
- key: str
27
- """
28
- Key of the property of the entity on which the consistency check is performed in Mongo dot notation, e.g. 'basis.coordinates.1'
29
- """
30
- name: Name
31
- """
32
- Name of the consistency check that is performed, which is listed in an enum.
33
- """
34
- severity: Severity
35
- """
36
- Severity level of the problem, which is used in UI to differentiate.
37
- """
38
- message: str
39
- """
40
- Message generated by the consistency check describing the problem.
41
- """
42
-
43
-
44
12
  class ApplicationSchemaBase(BaseModel):
45
13
  model_config = ConfigDict(
46
14
  extra="allow",
@@ -78,7 +46,6 @@ class ApplicationSchemaBase(BaseModel):
78
46
  entity slug
79
47
  """
80
48
  systemName: Optional[str] = None
81
- consistencyChecks: Optional[List[ConsistencyCheck]] = None
82
49
  schemaVersion: Optional[str] = "2022.8.16"
83
50
  """
84
51
  entity's schema version. Used to distinct between different schemas.