noether.data.schemas¶
Classes¶
A specification for a group of named data fields and their dimensions. |
|
Data specification for a single domain (e.g., surface, volume, wake). |
|
Base data specification for models that operate on arbitrary named domains. |
|
File mapping schema for aerodynamic datasets. |
|
Unified statistics dataclass for aerodynamics datasets such as AhmedML, and DrivAerML, DrivAerNet++, |
Module Contents¶
- class noether.data.schemas.FieldDimSpec¶
Bases:
pydantic.RootModel[collections.OrderedDict[str,int]]A specification for a group of named data fields and their dimensions.
- property field_slices: dict[str, slice]¶
Calculates slice indices for each field in concatenation order.
- keys()¶
- values()¶
- items()¶
- class noether.data.schemas.DomainDataSpec(/, **data)¶
Bases:
pydantic.BaseModelData specification for a single domain (e.g., surface, volume, wake).
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
- Parameters:
data (Any)
- output_dims: FieldDimSpec¶
1, “velocity”: 3}.
- Type:
Output fields and their dimensions for this domain, e.g. {“pressure”
- feature_dim: FieldDimSpec | None = None¶
Input feature fields and their dimensions for this domain.
- class noether.data.schemas.ModelDataSpecs(/, **data)¶
Bases:
pydantic.BaseModelBase data specification for models that operate on arbitrary named domains.
This is the minimal interface that model configs need from data specifications: position dimensions, available conditioning, and per-domain data descriptions.
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
- Parameters:
data (Any)
- conditioning_dims: FieldDimSpec | None = None¶
Available conditioning features and their dimensions.
- domains: dict[str, DomainDataSpec] = None¶
Per-domain data specifications keyed by domain name.
- property total_output_dim: int¶
Calculates the total output dimension across all domains.
- Return type:
- property all_targets: set[str]¶
Returns all target field names across all domains, prefixed by domain name.
- remove_feature_fields()¶
- class noether.data.schemas.FileMap(/, **data)¶
Bases:
pydantic.BaseModelFile mapping schema for aerodynamic datasets.
Maps field names to their corresponding file names in the dataset directory. This allows different datasets to use different file naming conventions while maintaining a unified interface.
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
- Parameters:
data (Any)
- class noether.data.schemas.AeroStatsSchema(/, **data)¶
Bases:
pydantic.BaseModelUnified statistics dataclass for aerodynamics datasets such as AhmedML, and DrivAerML, DrivAerNet++, ShapeNet-Car, and Wing.
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
- Parameters:
data (Any)
- inflow_design_parameters_min: collections.abc.Sequence[float] | None = None¶
- inflow_design_parameters_max: collections.abc.Sequence[float] | None = None¶
- inflow_design_parameters_mean: collections.abc.Sequence[float] | None = None¶
- inflow_design_parameters_std: collections.abc.Sequence[float] | None = None¶
- geometry_design_parameters_min: collections.abc.Sequence[float] | None = None¶
- geometry_design_parameters_max: collections.abc.Sequence[float] | None = None¶
- geometry_design_parameters_mean: collections.abc.Sequence[float] | None = None¶
- geometry_design_parameters_std: collections.abc.Sequence[float] | None = None¶