-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #313 from Exabyte-io/update/SOF-7321-clean
add python model classes generation: update/SOF 7321 clean
- Loading branch information
Showing
453 changed files
with
39,650 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# generated by datamodel-codegen: | ||
# filename: schema | ||
# version: 0.25.5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# generated by datamodel-codegen: | ||
# filename: schema | ||
# version: 0.25.5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# generated by datamodel-codegen: | ||
# filename: core/abstract/2d_data.json | ||
# version: 0.25.5 | ||
|
||
from __future__ import annotations | ||
|
||
from typing import List, Union | ||
|
||
from pydantic import BaseModel, Field | ||
|
||
|
||
class Field2DimensionDataSchema(BaseModel): | ||
xDataArray: List | ||
""" | ||
array containing values of x Axis | ||
""" | ||
yDataSeries: List[List[Union[float, str]]] = Field(..., title="1 dimension data series schema") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# generated by datamodel-codegen: | ||
# filename: core/abstract/2d_plot.json | ||
# version: 0.25.5 | ||
|
||
from __future__ import annotations | ||
|
||
from typing import List, Optional, Union | ||
|
||
from pydantic import BaseModel, Field | ||
|
||
|
||
class AxisSchema(BaseModel): | ||
label: str | ||
""" | ||
label of an axis object | ||
""" | ||
units: Optional[str] = None | ||
""" | ||
units for an axis | ||
""" | ||
|
||
|
||
class Field2DimensionPlotSchema(BaseModel): | ||
xAxis: AxisSchema = Field(..., title="axis schema") | ||
yAxis: AxisSchema = Field(..., title="axis schema") | ||
legend: Optional[List] = Field(None, min_length=1) | ||
""" | ||
Legend of y Axis data series | ||
""" | ||
xDataArray: List | ||
""" | ||
array containing values of x Axis | ||
""" | ||
yDataSeries: List[List[Union[float, str]]] = Field(..., title="1 dimension data series schema") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# generated by datamodel-codegen: | ||
# filename: core/abstract/3d_grid.json | ||
# version: 0.25.5 | ||
|
||
from __future__ import annotations | ||
|
||
from typing import List | ||
|
||
from pydantic import BaseModel, Field | ||
|
||
|
||
class Field3DimensionalGridSchema(BaseModel): | ||
dimensions: List[float] = Field(..., max_length=3, min_length=3, title="array of 3 number elements schema") | ||
shifts: List[float] = Field(..., max_length=3, min_length=3, title="array of 3 number elements schema") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# generated by datamodel-codegen: | ||
# filename: core/abstract/3d_tensor.json | ||
# version: 0.25.5 | ||
|
||
from __future__ import annotations | ||
|
||
from typing import Any, List | ||
|
||
from pydantic import Field, RootModel | ||
|
||
|
||
class ArrayOf3NumberElementsSchema(RootModel[List[Any]]): | ||
root: List[Any] = Field(..., title="array of 3 number elements schema") | ||
|
||
|
||
class Field3DimensionalTensorSchema(RootModel[List[ArrayOf3NumberElementsSchema]]): | ||
root: List[ArrayOf3NumberElementsSchema] = Field( | ||
..., max_length=3, min_length=3, title="3 dimensional tensor schema" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# generated by datamodel-codegen: | ||
# filename: core/abstract/3d_vector_basis.json | ||
# version: 0.25.5 | ||
|
||
from __future__ import annotations | ||
|
||
from typing import List | ||
|
||
from pydantic import BaseModel, Field | ||
|
||
|
||
class Field3DimensionalVectorBasis(BaseModel): | ||
a: List[float] = Field(..., max_length=3, min_length=3, title="array of 3 number elements schema") | ||
b: List[float] = Field(..., max_length=3, min_length=3, title="array of 3 number elements schema") | ||
c: List[float] = Field(..., max_length=3, min_length=3, title="array of 3 number elements schema") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# generated by datamodel-codegen: | ||
# filename: schema | ||
# version: 0.25.5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# generated by datamodel-codegen: | ||
# filename: core/abstract/point.json | ||
# version: 0.25.5 | ||
|
||
from __future__ import annotations | ||
|
||
from typing import List | ||
|
||
from pydantic import Field, RootModel | ||
|
||
|
||
class PointSchema(RootModel[List[float]]): | ||
root: List[float] = Field(..., max_length=3, min_length=3, title="point schema") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# generated by datamodel-codegen: | ||
# filename: core/abstract/vector.json | ||
# version: 0.25.5 | ||
|
||
from __future__ import annotations | ||
|
||
from typing import List, Union | ||
|
||
from pydantic import Field, RootModel | ||
|
||
|
||
class ESSE(RootModel[Union[List[float], List[bool]]]): | ||
root: Union[List[float], List[bool]] = Field(..., title="vector schema") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# generated by datamodel-codegen: | ||
# filename: core/primitive/1d_data_series.json | ||
# version: 0.25.5 | ||
|
||
from __future__ import annotations | ||
|
||
from typing import List, Union | ||
|
||
from pydantic import Field, RootModel | ||
|
||
|
||
class Field1DimensionDataSeriesSchema(RootModel[List[List[Union[float, str]]]]): | ||
root: List[List[Union[float, str]]] = Field(..., title="1 dimension data series schema") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# generated by datamodel-codegen: | ||
# filename: core/primitive/3d_lattice.json | ||
# version: 0.25.5 | ||
|
||
from __future__ import annotations | ||
|
||
from pydantic import BaseModel | ||
|
||
|
||
class Field3DimensionalLatticeSchema(BaseModel): | ||
a: float | ||
""" | ||
length of the first lattice vector | ||
""" | ||
b: float | ||
""" | ||
length of the second lattice vector | ||
""" | ||
c: float | ||
""" | ||
length of the third lattice vector | ||
""" | ||
alpha: float | ||
""" | ||
angle between first and second lattice vector | ||
""" | ||
beta: float | ||
""" | ||
angle between second and third lattice vector | ||
""" | ||
gamma: float | ||
""" | ||
angle between first and third lattice vector | ||
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# generated by datamodel-codegen: | ||
# filename: schema | ||
# version: 0.25.5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# generated by datamodel-codegen: | ||
# filename: core/primitive/array_of_3_booleans.json | ||
# version: 0.25.5 | ||
|
||
from __future__ import annotations | ||
|
||
from typing import List | ||
|
||
from pydantic import Field, RootModel | ||
|
||
|
||
class ArrayOf3BooleanElementsSchema(RootModel[List[bool]]): | ||
root: List[bool] = Field(..., max_length=3, min_length=3, title="array of 3 boolean elements schema") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# generated by datamodel-codegen: | ||
# filename: core/primitive/array_of_3_numbers.json | ||
# version: 0.25.5 | ||
|
||
from __future__ import annotations | ||
|
||
from typing import List | ||
|
||
from pydantic import Field, RootModel | ||
|
||
|
||
class ArrayOf3NumberElementsSchema(RootModel[List[float]]): | ||
root: List[float] = Field(..., max_length=3, min_length=3, title="array of 3 number elements schema") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# generated by datamodel-codegen: | ||
# filename: core/primitive/array_of_ids.json | ||
# version: 0.25.5 | ||
|
||
from __future__ import annotations | ||
|
||
from typing import List, Optional | ||
|
||
from pydantic import BaseModel, Field, RootModel | ||
|
||
|
||
class AtomicId(BaseModel): | ||
id: Optional[int] = None | ||
""" | ||
integer id of this entry | ||
""" | ||
|
||
|
||
class AtomicIds(RootModel[List[AtomicId]]): | ||
root: List[AtomicId] = Field(..., title="atomic ids") | ||
""" | ||
array of objects containing integer id each | ||
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# generated by datamodel-codegen: | ||
# filename: core/primitive/array_of_strings.json | ||
# version: 0.25.5 | ||
|
||
from __future__ import annotations | ||
|
||
from typing import List | ||
|
||
from pydantic import Field, RootModel | ||
|
||
|
||
class ArrayOfStrings(RootModel[List[str]]): | ||
root: List[str] = Field(..., title="array of strings") | ||
""" | ||
array of strings, e.g. metadata tags | ||
""" |
Oops, something went wrong.