schema Module
Module definine ResultSchema and ArtifactSchema
ResultSchema
Dataclass representing a phase artifact schema
Used to validate a pipeline
Attributes:
Name | Type | Description |
---|---|---|
extension |
str
|
The artifact file extension (i.e. ".h5" or ".parquet") |
structure |
list[str] | dict[str, Any] | None
|
The artifact data structure. Can be a list of strings (dataframe columns), a dictionary (HDF5 groups) or None (not specified) |
Source code in src/spyral/core/schema.py
__eq__(other)
Allow comparison of schemas for equivalency
Parameters:
Name | Type | Description | Default |
---|---|---|---|
other |
Self
|
The schema to compare to |
required |
Returns:
Type | Description |
---|---|
bool
|
True if the schemas are equivalent or False if they are different |