mat3ra-esse 2025.8.14.post0__py3-none-any.whl → 2025.8.20.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 (51) hide show
  1. mat3ra/esse/data/examples.py +1 -1
  2. mat3ra/esse/data/schemas.py +1 -1
  3. mat3ra/esse/models/core/reference/__init__.py +5 -5
  4. mat3ra/esse/models/core/reference/experiment/__init__.py +2 -2
  5. mat3ra/esse/models/job/__init__.py +21 -21
  6. mat3ra/esse/models/material/__init__.py +8 -8
  7. mat3ra/esse/models/materials_category/defective_structures/zero_dimensional/point_defect/interstitial.py +17 -17
  8. mat3ra/esse/models/materials_category/defective_structures/zero_dimensional/point_defect/substitutional.py +17 -17
  9. mat3ra/esse/models/materials_category/defective_structures/zero_dimensional/point_defect/vacancy.py +8 -8
  10. mat3ra/esse/models/materials_category/pristine_structures/three_dimensional/ideal_crystal.py +8 -8
  11. mat3ra/esse/models/materials_category/pristine_structures/two_dimensional/nanoribbon.py +26 -26
  12. mat3ra/esse/models/materials_category/pristine_structures/two_dimensional/nanotape.py +17 -17
  13. mat3ra/esse/models/materials_category/pristine_structures/two_dimensional/slab.py +17 -17
  14. mat3ra/esse/models/materials_category/pristine_structures/two_dimensional/slab_strained_supercell.py +17 -17
  15. mat3ra/esse/models/materials_category_components/entities/auxiliary/zero_dimensional/point_defect_site.py +8 -8
  16. mat3ra/esse/models/materials_category_components/entities/auxiliary/zero_dimensional/void_region.py +8 -8
  17. mat3ra/esse/models/materials_category_components/entities/core/two_dimensional/vacuum.py +8 -8
  18. mat3ra/esse/models/materials_category_components/entities/reusable/three_dimensional/strained_non_uniform.py +8 -8
  19. mat3ra/esse/models/materials_category_components/entities/reusable/three_dimensional/strained_uniform.py +8 -8
  20. mat3ra/esse/models/materials_category_components/entities/reusable/three_dimensional/supercell.py +8 -8
  21. mat3ra/esse/models/materials_category_components/entities/reusable/two_dimensional/slab_stack_configuration.py +26 -26
  22. mat3ra/esse/models/materials_category_components/operations/core/modifications/perturb.py +8 -8
  23. mat3ra/esse/models/properties_directory/non_scalar/total_energy_contributions.py +26 -26
  24. mat3ra/esse/models/properties_directory/structural/molecular_pattern.py +4 -4
  25. mat3ra/esse/models/property/meta.py +2 -2
  26. mat3ra/esse/models/property/raw.py +2 -2
  27. mat3ra/esse/models/property/source.py +2 -2
  28. mat3ra/esse/models/workflow/__init__.py +19 -19
  29. mat3ra/esse/models/workflow/subworkflow/__init__.py +6 -6
  30. mat3ra/esse/models/workflow/subworkflow/unit.py +6 -6
  31. mat3ra/esse/models/workflow/unit/__init__.py +8 -8
  32. {mat3ra_esse-2025.8.14.post0.dist-info → mat3ra_esse-2025.8.20.post0.dist-info}/METADATA +1 -1
  33. {mat3ra_esse-2025.8.14.post0.dist-info → mat3ra_esse-2025.8.20.post0.dist-info}/RECORD +36 -51
  34. mat3ra/esse/models/software_directory/ml/__init__.py +0 -3
  35. mat3ra/esse/models/software_directory/ml/exabyteml.py +0 -28
  36. mat3ra/esse/models/software_directory/ml/unit/__init__.py +0 -3
  37. mat3ra/esse/models/software_directory/ml/unit/execution/__init__.py +0 -879
  38. mat3ra/esse/models/software_directory/ml/unit/execution/evaluate/__init__.py +0 -3
  39. mat3ra/esse/models/software_directory/ml/unit/execution/evaluate/cross_validate.py +0 -293
  40. mat3ra/esse/models/software_directory/ml/unit/execution/initialize.py +0 -293
  41. mat3ra/esse/models/software_directory/ml/unit/execution/score.py +0 -286
  42. mat3ra/esse/models/software_directory/ml/unit/execution/train.py +0 -297
  43. mat3ra/esse/models/software_directory/ml/unit/processing/__init__.py +0 -276
  44. mat3ra/esse/models/software_directory/ml/unit/processing/data_transformation/__init__.py +0 -167
  45. mat3ra/esse/models/software_directory/ml/unit/processing/data_transformation/manipulation.py +0 -144
  46. mat3ra/esse/models/software_directory/ml/unit/processing/data_transformation/scale_and_reduce.py +0 -163
  47. mat3ra/esse/models/software_directory/ml/unit/processing/feature_selection/__init__.py +0 -148
  48. mat3ra/esse/models/software_directory/ml/unit/processing/feature_selection/filter_based.py +0 -144
  49. {mat3ra_esse-2025.8.14.post0.dist-info → mat3ra_esse-2025.8.20.post0.dist-info}/WHEEL +0 -0
  50. {mat3ra_esse-2025.8.14.post0.dist-info → mat3ra_esse-2025.8.20.post0.dist-info}/licenses/LICENSE.md +0 -0
  51. {mat3ra_esse-2025.8.14.post0.dist-info → mat3ra_esse-2025.8.20.post0.dist-info}/top_level.txt +0 -0
@@ -1,879 +0,0 @@
1
- # generated by datamodel-codegen:
2
- # filename: software_directory/ml/unit/execution.json
3
- # version: 0.28.5
4
-
5
- from __future__ import annotations
6
-
7
- from enum import Enum
8
- from typing import Any, Dict, List, Optional, Union
9
-
10
- from pydantic import BaseModel, ConfigDict, Field, RootModel
11
-
12
-
13
- class Input(BaseModel):
14
- nSplits: float
15
- """
16
- number of groups to split the training dataset for cross-validation
17
- """
18
-
19
-
20
- class Type(Enum):
21
- execution = "execution"
22
-
23
-
24
- class ApplicationSchemaBase(BaseModel):
25
- model_config = ConfigDict(
26
- extra="allow",
27
- )
28
- shortName: Optional[str] = None
29
- """
30
- The short name of the application. e.g. qe
31
- """
32
- summary: Optional[str] = None
33
- """
34
- Application's short description.
35
- """
36
- version: Optional[str] = None
37
- """
38
- Application version. e.g. 5.3.5
39
- """
40
- build: Optional[str] = None
41
- """
42
- Application build. e.g. VTST
43
- """
44
- hasAdvancedComputeOptions: Optional[bool] = None
45
- """
46
- Whether advanced compute options are present
47
- """
48
- isLicensed: Optional[bool] = None
49
- """
50
- Whether licensing is present
51
- """
52
- field_id: Optional[str] = Field(None, alias="_id")
53
- """
54
- entity identity
55
- """
56
- slug: Optional[str] = None
57
- """
58
- entity slug
59
- """
60
- systemName: Optional[str] = None
61
- schemaVersion: Optional[str] = "2022.8.16"
62
- """
63
- entity's schema version. Used to distinct between different schemas.
64
- """
65
- name: Optional[str] = None
66
- """
67
- entity name
68
- """
69
- isDefault: Optional[bool] = False
70
- """
71
- Identifies that entity is defaultable
72
- """
73
-
74
-
75
- class NameResultSchema(BaseModel):
76
- name: str
77
- """
78
- The name of this item. e.g. scf_accuracy
79
- """
80
-
81
-
82
- class ExecutableSchema(BaseModel):
83
- name: str
84
- """
85
- The name of the executable. e.g. pw.x
86
- """
87
- applicationId: Optional[List[str]] = None
88
- """
89
- _ids of the application this executable belongs to
90
- """
91
- hasAdvancedComputeOptions: Optional[bool] = None
92
- """
93
- Whether advanced compute options are present
94
- """
95
- field_id: Optional[str] = Field(None, alias="_id")
96
- """
97
- entity identity
98
- """
99
- slug: Optional[str] = None
100
- """
101
- entity slug
102
- """
103
- systemName: Optional[str] = None
104
- schemaVersion: Optional[str] = "2022.8.16"
105
- """
106
- entity's schema version. Used to distinct between different schemas.
107
- """
108
- isDefault: Optional[bool] = False
109
- """
110
- Identifies that entity is defaultable
111
- """
112
- preProcessors: Optional[List[Union[NameResultSchema, str]]] = None
113
- """
114
- names of the pre-processors for this calculation
115
- """
116
- postProcessors: Optional[List[Union[NameResultSchema, str]]] = None
117
- """
118
- names of the post-processors for this calculation
119
- """
120
- monitors: Optional[List[Union[NameResultSchema, str]]] = None
121
- """
122
- names of the monitors for this calculation
123
- """
124
- results: Optional[List[Union[NameResultSchema, str]]] = None
125
- """
126
- names of the results for this calculation
127
- """
128
-
129
-
130
- class ExecutionUnitInputIdItemSchemaForPhysicsBasedSimulationEngines(BaseModel):
131
- model_config = ConfigDict(
132
- extra="forbid",
133
- )
134
- templateId: Optional[str] = None
135
- templateName: Optional[str] = None
136
- name: Optional[str] = None
137
- """
138
- name of the resulting input file, if different than template name
139
- """
140
-
141
-
142
- class FlavorSchema(BaseModel):
143
- executableId: Optional[str] = None
144
- """
145
- _id of the executable this flavor belongs to
146
- """
147
- executableName: Optional[str] = None
148
- """
149
- name of the executable this flavor belongs to
150
- """
151
- applicationName: Optional[str] = None
152
- """
153
- name of the application this flavor belongs to
154
- """
155
- input: Optional[List[ExecutionUnitInputIdItemSchemaForPhysicsBasedSimulationEngines]] = Field(
156
- None, title="execution unit input schema"
157
- )
158
- supportedApplicationVersions: Optional[List[str]] = None
159
- """
160
- list of application versions this flavor supports
161
- """
162
- field_id: Optional[str] = Field(None, alias="_id")
163
- """
164
- entity identity
165
- """
166
- slug: Optional[str] = None
167
- """
168
- entity slug
169
- """
170
- systemName: Optional[str] = None
171
- schemaVersion: Optional[str] = "2022.8.16"
172
- """
173
- entity's schema version. Used to distinct between different schemas.
174
- """
175
- name: Optional[str] = None
176
- """
177
- entity name
178
- """
179
- isDefault: Optional[bool] = False
180
- """
181
- Identifies that entity is defaultable
182
- """
183
- preProcessors: Optional[List[Union[NameResultSchema, str]]] = None
184
- """
185
- names of the pre-processors for this calculation
186
- """
187
- postProcessors: Optional[List[Union[NameResultSchema, str]]] = None
188
- """
189
- names of the post-processors for this calculation
190
- """
191
- monitors: Optional[List[Union[NameResultSchema, str]]] = None
192
- """
193
- names of the monitors for this calculation
194
- """
195
- results: Optional[List[Union[NameResultSchema, str]]] = None
196
- """
197
- names of the results for this calculation
198
- """
199
-
200
-
201
- class Status(Enum):
202
- idle = "idle"
203
- active = "active"
204
- warning = "warning"
205
- error = "error"
206
- finished = "finished"
207
-
208
-
209
- class StatusTrackItem(BaseModel):
210
- trackedAt: float
211
- status: str
212
- repetition: Optional[float] = None
213
-
214
-
215
- class CrossValidationUnitSchema(BaseModel):
216
- model_config = ConfigDict(
217
- extra="allow",
218
- )
219
- input: Input
220
- """
221
- TODO: consider keeping executable `evaluate` and flavor `cross-validate` as before
222
- """
223
- type: Type
224
- """
225
- type of the unit
226
- """
227
- application: ApplicationSchemaBase = Field(..., title="application schema (base)")
228
- executable: Optional[ExecutableSchema] = Field(None, title="executable schema")
229
- flavor: Optional[FlavorSchema] = Field(None, title="flavor schema")
230
- field_id: Optional[str] = Field(None, alias="_id")
231
- """
232
- entity identity
233
- """
234
- isDraft: Optional[bool] = None
235
- name: Optional[str] = None
236
- """
237
- name of the unit. e.g. pw_scf
238
- """
239
- status: Optional[Status] = None
240
- """
241
- Status of the unit.
242
- """
243
- head: Optional[bool] = None
244
- """
245
- Whether this unit is the first one to be executed.
246
- """
247
- flowchartId: str
248
- """
249
- Identity of the unit in the workflow. Used to trace the execution flow of the workflow.
250
- """
251
- next: Optional[str] = None
252
- """
253
- Next unit's flowchartId. If empty, the current unit is the last.
254
- """
255
- enableRender: Optional[bool] = None
256
- """
257
- Whether Rupy should attempt to use Jinja templating to add context variables into the unit
258
- """
259
- context: Optional[Dict[str, Any]] = None
260
- slug: Optional[str] = None
261
- """
262
- entity slug
263
- """
264
- systemName: Optional[str] = None
265
- schemaVersion: Optional[str] = "2022.8.16"
266
- """
267
- entity's schema version. Used to distinct between different schemas.
268
- """
269
- isDefault: Optional[bool] = False
270
- """
271
- Identifies that entity is defaultable
272
- """
273
- preProcessors: Optional[List[Union[NameResultSchema, str]]] = None
274
- """
275
- names of the pre-processors for this calculation
276
- """
277
- postProcessors: Optional[List[Union[NameResultSchema, str]]] = None
278
- """
279
- names of the post-processors for this calculation
280
- """
281
- monitors: Optional[List[Union[NameResultSchema, str]]] = None
282
- """
283
- names of the monitors for this calculation
284
- """
285
- results: Optional[List[Union[NameResultSchema, str]]] = None
286
- """
287
- names of the results for this calculation
288
- """
289
- tags: Optional[List[str]] = None
290
- """
291
- entity tags
292
- """
293
- statusTrack: Optional[List[StatusTrackItem]] = None
294
-
295
-
296
- class Input2(BaseModel):
297
- features: List[str]
298
- """
299
- material features used for model fitting
300
- """
301
- targets: List[str]
302
- """
303
- target properties to train for
304
- """
305
-
306
-
307
- class ExecutableSchema6(BaseModel):
308
- name: str
309
- """
310
- The name of the executable. e.g. pw.x
311
- """
312
- applicationId: Optional[List[str]] = None
313
- """
314
- _ids of the application this executable belongs to
315
- """
316
- hasAdvancedComputeOptions: Optional[bool] = None
317
- """
318
- Whether advanced compute options are present
319
- """
320
- field_id: Optional[str] = Field(None, alias="_id")
321
- """
322
- entity identity
323
- """
324
- slug: Optional[str] = None
325
- """
326
- entity slug
327
- """
328
- systemName: Optional[str] = None
329
- schemaVersion: Optional[str] = "2022.8.16"
330
- """
331
- entity's schema version. Used to distinct between different schemas.
332
- """
333
- isDefault: Optional[bool] = False
334
- """
335
- Identifies that entity is defaultable
336
- """
337
- preProcessors: Optional[List[Union[NameResultSchema, str]]] = None
338
- """
339
- names of the pre-processors for this calculation
340
- """
341
- postProcessors: Optional[List[Union[NameResultSchema, str]]] = None
342
- """
343
- names of the post-processors for this calculation
344
- """
345
- monitors: Optional[List[Union[NameResultSchema, str]]] = None
346
- """
347
- names of the monitors for this calculation
348
- """
349
- results: Optional[List[Union[NameResultSchema, str]]] = None
350
- """
351
- names of the results for this calculation
352
- """
353
-
354
-
355
- class FlavorSchema5(BaseModel):
356
- executableId: Optional[str] = None
357
- """
358
- _id of the executable this flavor belongs to
359
- """
360
- executableName: Optional[str] = None
361
- """
362
- name of the executable this flavor belongs to
363
- """
364
- applicationName: Optional[str] = None
365
- """
366
- name of the application this flavor belongs to
367
- """
368
- input: Optional[List[ExecutionUnitInputIdItemSchemaForPhysicsBasedSimulationEngines]] = Field(
369
- None, title="execution unit input schema"
370
- )
371
- supportedApplicationVersions: Optional[List[str]] = None
372
- """
373
- list of application versions this flavor supports
374
- """
375
- field_id: Optional[str] = Field(None, alias="_id")
376
- """
377
- entity identity
378
- """
379
- slug: Optional[str] = None
380
- """
381
- entity slug
382
- """
383
- systemName: Optional[str] = None
384
- schemaVersion: Optional[str] = "2022.8.16"
385
- """
386
- entity's schema version. Used to distinct between different schemas.
387
- """
388
- name: Optional[str] = None
389
- """
390
- entity name
391
- """
392
- isDefault: Optional[bool] = False
393
- """
394
- Identifies that entity is defaultable
395
- """
396
- preProcessors: Optional[List[Union[NameResultSchema, str]]] = None
397
- """
398
- names of the pre-processors for this calculation
399
- """
400
- postProcessors: Optional[List[Union[NameResultSchema, str]]] = None
401
- """
402
- names of the post-processors for this calculation
403
- """
404
- monitors: Optional[List[Union[NameResultSchema, str]]] = None
405
- """
406
- names of the monitors for this calculation
407
- """
408
- results: Optional[List[Union[NameResultSchema, str]]] = None
409
- """
410
- names of the results for this calculation
411
- """
412
-
413
-
414
- class TrainUnitSchema(BaseModel):
415
- model_config = ConfigDict(
416
- extra="allow",
417
- )
418
- input: Input2
419
- """
420
- model train unit (NOTE: info about method, eg. regression/linear is taken from (sub)workflow)
421
- """
422
- type: Type
423
- """
424
- type of the unit
425
- """
426
- application: ApplicationSchemaBase = Field(..., title="application schema (base)")
427
- executable: Optional[ExecutableSchema6] = Field(None, title="executable schema")
428
- flavor: Optional[FlavorSchema5] = Field(None, title="flavor schema")
429
- field_id: Optional[str] = Field(None, alias="_id")
430
- """
431
- entity identity
432
- """
433
- isDraft: Optional[bool] = None
434
- name: Optional[str] = None
435
- """
436
- name of the unit. e.g. pw_scf
437
- """
438
- status: Optional[Status] = None
439
- """
440
- Status of the unit.
441
- """
442
- head: Optional[bool] = None
443
- """
444
- Whether this unit is the first one to be executed.
445
- """
446
- flowchartId: str
447
- """
448
- Identity of the unit in the workflow. Used to trace the execution flow of the workflow.
449
- """
450
- next: Optional[str] = None
451
- """
452
- Next unit's flowchartId. If empty, the current unit is the last.
453
- """
454
- enableRender: Optional[bool] = None
455
- """
456
- Whether Rupy should attempt to use Jinja templating to add context variables into the unit
457
- """
458
- context: Optional[Dict[str, Any]] = None
459
- slug: Optional[str] = None
460
- """
461
- entity slug
462
- """
463
- systemName: Optional[str] = None
464
- schemaVersion: Optional[str] = "2022.8.16"
465
- """
466
- entity's schema version. Used to distinct between different schemas.
467
- """
468
- isDefault: Optional[bool] = False
469
- """
470
- Identifies that entity is defaultable
471
- """
472
- preProcessors: Optional[List[Union[NameResultSchema, str]]] = None
473
- """
474
- names of the pre-processors for this calculation
475
- """
476
- postProcessors: Optional[List[Union[NameResultSchema, str]]] = None
477
- """
478
- names of the post-processors for this calculation
479
- """
480
- monitors: Optional[List[Union[NameResultSchema, str]]] = None
481
- """
482
- names of the monitors for this calculation
483
- """
484
- results: Optional[List[Union[NameResultSchema, str]]] = None
485
- """
486
- names of the results for this calculation
487
- """
488
- tags: Optional[List[str]] = None
489
- """
490
- entity tags
491
- """
492
- statusTrack: Optional[List[StatusTrackItem]] = None
493
-
494
-
495
- class ExecutableSchema7(BaseModel):
496
- name: str
497
- """
498
- The name of the executable. e.g. pw.x
499
- """
500
- applicationId: Optional[List[str]] = None
501
- """
502
- _ids of the application this executable belongs to
503
- """
504
- hasAdvancedComputeOptions: Optional[bool] = None
505
- """
506
- Whether advanced compute options are present
507
- """
508
- field_id: Optional[str] = Field(None, alias="_id")
509
- """
510
- entity identity
511
- """
512
- slug: Optional[str] = None
513
- """
514
- entity slug
515
- """
516
- systemName: Optional[str] = None
517
- schemaVersion: Optional[str] = "2022.8.16"
518
- """
519
- entity's schema version. Used to distinct between different schemas.
520
- """
521
- isDefault: Optional[bool] = False
522
- """
523
- Identifies that entity is defaultable
524
- """
525
- preProcessors: Optional[List[Union[NameResultSchema, str]]] = None
526
- """
527
- names of the pre-processors for this calculation
528
- """
529
- postProcessors: Optional[List[Union[NameResultSchema, str]]] = None
530
- """
531
- names of the post-processors for this calculation
532
- """
533
- monitors: Optional[List[Union[NameResultSchema, str]]] = None
534
- """
535
- names of the monitors for this calculation
536
- """
537
- results: Optional[List[Union[NameResultSchema, str]]] = None
538
- """
539
- names of the results for this calculation
540
- """
541
-
542
-
543
- class FlavorSchema6(BaseModel):
544
- executableId: Optional[str] = None
545
- """
546
- _id of the executable this flavor belongs to
547
- """
548
- executableName: Optional[str] = None
549
- """
550
- name of the executable this flavor belongs to
551
- """
552
- applicationName: Optional[str] = None
553
- """
554
- name of the application this flavor belongs to
555
- """
556
- input: Optional[List[ExecutionUnitInputIdItemSchemaForPhysicsBasedSimulationEngines]] = Field(
557
- None, title="execution unit input schema"
558
- )
559
- supportedApplicationVersions: Optional[List[str]] = None
560
- """
561
- list of application versions this flavor supports
562
- """
563
- field_id: Optional[str] = Field(None, alias="_id")
564
- """
565
- entity identity
566
- """
567
- slug: Optional[str] = None
568
- """
569
- entity slug
570
- """
571
- systemName: Optional[str] = None
572
- schemaVersion: Optional[str] = "2022.8.16"
573
- """
574
- entity's schema version. Used to distinct between different schemas.
575
- """
576
- name: Optional[str] = None
577
- """
578
- entity name
579
- """
580
- isDefault: Optional[bool] = False
581
- """
582
- Identifies that entity is defaultable
583
- """
584
- preProcessors: Optional[List[Union[NameResultSchema, str]]] = None
585
- """
586
- names of the pre-processors for this calculation
587
- """
588
- postProcessors: Optional[List[Union[NameResultSchema, str]]] = None
589
- """
590
- names of the post-processors for this calculation
591
- """
592
- monitors: Optional[List[Union[NameResultSchema, str]]] = None
593
- """
594
- names of the monitors for this calculation
595
- """
596
- results: Optional[List[Union[NameResultSchema, str]]] = None
597
- """
598
- names of the results for this calculation
599
- """
600
-
601
-
602
- class TrainScoreSchema(BaseModel):
603
- model_config = ConfigDict(
604
- extra="allow",
605
- )
606
- input: Any
607
- """
608
- unit input (type to be specified by the application's execution unit)
609
- """
610
- type: Type
611
- """
612
- type of the unit
613
- """
614
- application: ApplicationSchemaBase = Field(..., title="application schema (base)")
615
- executable: Optional[ExecutableSchema7] = Field(None, title="executable schema")
616
- flavor: Optional[FlavorSchema6] = Field(None, title="flavor schema")
617
- field_id: Optional[str] = Field(None, alias="_id")
618
- """
619
- entity identity
620
- """
621
- isDraft: Optional[bool] = None
622
- name: Optional[str] = None
623
- """
624
- name of the unit. e.g. pw_scf
625
- """
626
- status: Optional[Status] = None
627
- """
628
- Status of the unit.
629
- """
630
- head: Optional[bool] = None
631
- """
632
- Whether this unit is the first one to be executed.
633
- """
634
- flowchartId: str
635
- """
636
- Identity of the unit in the workflow. Used to trace the execution flow of the workflow.
637
- """
638
- next: Optional[str] = None
639
- """
640
- Next unit's flowchartId. If empty, the current unit is the last.
641
- """
642
- enableRender: Optional[bool] = None
643
- """
644
- Whether Rupy should attempt to use Jinja templating to add context variables into the unit
645
- """
646
- context: Optional[Dict[str, Any]] = None
647
- slug: Optional[str] = None
648
- """
649
- entity slug
650
- """
651
- systemName: Optional[str] = None
652
- schemaVersion: Optional[str] = "2022.8.16"
653
- """
654
- entity's schema version. Used to distinct between different schemas.
655
- """
656
- isDefault: Optional[bool] = False
657
- """
658
- Identifies that entity is defaultable
659
- """
660
- preProcessors: Optional[List[Union[NameResultSchema, str]]] = None
661
- """
662
- names of the pre-processors for this calculation
663
- """
664
- postProcessors: Optional[List[Union[NameResultSchema, str]]] = None
665
- """
666
- names of the post-processors for this calculation
667
- """
668
- monitors: Optional[List[Union[NameResultSchema, str]]] = None
669
- """
670
- names of the monitors for this calculation
671
- """
672
- results: Optional[List[Union[NameResultSchema, str]]] = None
673
- """
674
- names of the results for this calculation
675
- """
676
- tags: Optional[List[str]] = None
677
- """
678
- entity tags
679
- """
680
- statusTrack: Optional[List[StatusTrackItem]] = None
681
-
682
-
683
- class Input3(BaseModel):
684
- targets: List[str]
685
- """
686
- target properties to predict (NOTE: must be a subset of targets for which training was done)
687
- """
688
-
689
-
690
- class ExecutableSchema8(BaseModel):
691
- name: str
692
- """
693
- The name of the executable. e.g. pw.x
694
- """
695
- applicationId: Optional[List[str]] = None
696
- """
697
- _ids of the application this executable belongs to
698
- """
699
- hasAdvancedComputeOptions: Optional[bool] = None
700
- """
701
- Whether advanced compute options are present
702
- """
703
- field_id: Optional[str] = Field(None, alias="_id")
704
- """
705
- entity identity
706
- """
707
- slug: Optional[str] = None
708
- """
709
- entity slug
710
- """
711
- systemName: Optional[str] = None
712
- schemaVersion: Optional[str] = "2022.8.16"
713
- """
714
- entity's schema version. Used to distinct between different schemas.
715
- """
716
- isDefault: Optional[bool] = False
717
- """
718
- Identifies that entity is defaultable
719
- """
720
- preProcessors: Optional[List[Union[NameResultSchema, str]]] = None
721
- """
722
- names of the pre-processors for this calculation
723
- """
724
- postProcessors: Optional[List[Union[NameResultSchema, str]]] = None
725
- """
726
- names of the post-processors for this calculation
727
- """
728
- monitors: Optional[List[Union[NameResultSchema, str]]] = None
729
- """
730
- names of the monitors for this calculation
731
- """
732
- results: Optional[List[Union[NameResultSchema, str]]] = None
733
- """
734
- names of the results for this calculation
735
- """
736
-
737
-
738
- class FlavorSchema7(BaseModel):
739
- executableId: Optional[str] = None
740
- """
741
- _id of the executable this flavor belongs to
742
- """
743
- executableName: Optional[str] = None
744
- """
745
- name of the executable this flavor belongs to
746
- """
747
- applicationName: Optional[str] = None
748
- """
749
- name of the application this flavor belongs to
750
- """
751
- input: Optional[List[ExecutionUnitInputIdItemSchemaForPhysicsBasedSimulationEngines]] = Field(
752
- None, title="execution unit input schema"
753
- )
754
- supportedApplicationVersions: Optional[List[str]] = None
755
- """
756
- list of application versions this flavor supports
757
- """
758
- field_id: Optional[str] = Field(None, alias="_id")
759
- """
760
- entity identity
761
- """
762
- slug: Optional[str] = None
763
- """
764
- entity slug
765
- """
766
- systemName: Optional[str] = None
767
- schemaVersion: Optional[str] = "2022.8.16"
768
- """
769
- entity's schema version. Used to distinct between different schemas.
770
- """
771
- name: Optional[str] = None
772
- """
773
- entity name
774
- """
775
- isDefault: Optional[bool] = False
776
- """
777
- Identifies that entity is defaultable
778
- """
779
- preProcessors: Optional[List[Union[NameResultSchema, str]]] = None
780
- """
781
- names of the pre-processors for this calculation
782
- """
783
- postProcessors: Optional[List[Union[NameResultSchema, str]]] = None
784
- """
785
- names of the post-processors for this calculation
786
- """
787
- monitors: Optional[List[Union[NameResultSchema, str]]] = None
788
- """
789
- names of the monitors for this calculation
790
- """
791
- results: Optional[List[Union[NameResultSchema, str]]] = None
792
- """
793
- names of the results for this calculation
794
- """
795
-
796
-
797
- class InitializeUnitSchema(BaseModel):
798
- model_config = ConfigDict(
799
- extra="allow",
800
- )
801
- input: Input3
802
- """
803
- model init unit (NOTE: info about method, eg. regression/linear is taken from (sub)workflow)
804
- """
805
- type: Type
806
- """
807
- type of the unit
808
- """
809
- application: ApplicationSchemaBase = Field(..., title="application schema (base)")
810
- executable: Optional[ExecutableSchema8] = Field(None, title="executable schema")
811
- flavor: Optional[FlavorSchema7] = Field(None, title="flavor schema")
812
- field_id: Optional[str] = Field(None, alias="_id")
813
- """
814
- entity identity
815
- """
816
- isDraft: Optional[bool] = None
817
- name: Optional[str] = None
818
- """
819
- name of the unit. e.g. pw_scf
820
- """
821
- status: Optional[Status] = None
822
- """
823
- Status of the unit.
824
- """
825
- head: Optional[bool] = None
826
- """
827
- Whether this unit is the first one to be executed.
828
- """
829
- flowchartId: str
830
- """
831
- Identity of the unit in the workflow. Used to trace the execution flow of the workflow.
832
- """
833
- next: Optional[str] = None
834
- """
835
- Next unit's flowchartId. If empty, the current unit is the last.
836
- """
837
- enableRender: Optional[bool] = None
838
- """
839
- Whether Rupy should attempt to use Jinja templating to add context variables into the unit
840
- """
841
- context: Optional[Dict[str, Any]] = None
842
- slug: Optional[str] = None
843
- """
844
- entity slug
845
- """
846
- systemName: Optional[str] = None
847
- schemaVersion: Optional[str] = "2022.8.16"
848
- """
849
- entity's schema version. Used to distinct between different schemas.
850
- """
851
- isDefault: Optional[bool] = False
852
- """
853
- Identifies that entity is defaultable
854
- """
855
- preProcessors: Optional[List[Union[NameResultSchema, str]]] = None
856
- """
857
- names of the pre-processors for this calculation
858
- """
859
- postProcessors: Optional[List[Union[NameResultSchema, str]]] = None
860
- """
861
- names of the post-processors for this calculation
862
- """
863
- monitors: Optional[List[Union[NameResultSchema, str]]] = None
864
- """
865
- names of the monitors for this calculation
866
- """
867
- results: Optional[List[Union[NameResultSchema, str]]] = None
868
- """
869
- names of the results for this calculation
870
- """
871
- tags: Optional[List[str]] = None
872
- """
873
- entity tags
874
- """
875
- statusTrack: Optional[List[StatusTrackItem]] = None
876
-
877
-
878
- class ESSE(RootModel[Union[CrossValidationUnitSchema, TrainUnitSchema, TrainScoreSchema, InitializeUnitSchema]]):
879
- root: Union[CrossValidationUnitSchema, TrainUnitSchema, TrainScoreSchema, InitializeUnitSchema]