phlower.settings.PhlowerScalingSetting¶
- class phlower.settings.PhlowerScalingSetting(*, varaible_name_to_scalers=None)[source]¶
Bases:
BaseModel
Methods
get_scaler_name
(variable_name)get_variable_names
()is_scaler_exist
(variable_name)read_yaml
(file_path)resolve_scalers
()Attributes
A dictionary of computed field names and their corresponding ComputedFieldInfo objects.
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
model_extra
Get extra fields set during validation.
Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo] objects.
model_fields_set
Returns the set of fields that have been explicitly set on this model instance.
varaible_name_to_scalers
- Parameters:
varaible_name_to_scalers (dict[str, ScalerInputParameters | SameAsInputParameters])
- model_computed_fields: ClassVar[Dict[str, ComputedFieldInfo]] = {}¶
A dictionary of computed field names and their corresponding ComputedFieldInfo objects.
- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'frozen': True}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_fields: ClassVar[Dict[str, FieldInfo]] = {'varaible_name_to_scalers': FieldInfo(annotation=dict[str, Union[ScalerInputParameters, SameAsInputParameters]], required=False, default_factory=<lambda>)}¶
Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo] objects.
This replaces Model.__fields__ from Pydantic V1.