phlower.settings.ScalerInputParameters

class phlower.settings.ScalerInputParameters(*, method, component_wise=False, parameters=None, join_fitting=True)[source]

Bases: IScalerParameter, BaseModel

Methods

get_scaler_name(variable_name)

is_exist_method(v)

must_be_true(v)

Attributes

is_parent_scaler

model_computed_fields

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_extra

Get extra fields set during validation.

model_fields

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.

method

component_wise

parameters

join_fitting

Parameters:
  • method (str)

  • component_wise (bool)

  • parameters (dict[str, Any])

  • join_fitting (bool)

model_computed_fields: ClassVar[Dict[str, ComputedFieldInfo]] = {}

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {'arbitrary_types_allowed': True, 'extra': 'forbid', 'frozen': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[Dict[str, FieldInfo]] = {'component_wise': FieldInfo(annotation=bool, required=False, default=False), 'join_fitting': FieldInfo(annotation=bool, required=False, default=True), 'method': FieldInfo(annotation=str, required=True), 'parameters': FieldInfo(annotation=dict[str, Any], 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.