WeightMetadata#

class caf.space.metadata.WeightMetadata(*, data_col, id_col, year, type)[source]#

Bases: BaseConfig

Class for storing metadata about weighting date.

This is not currently used but could be part of a GUI.

Attributes

model_computed_fields

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

model_fields_set

Returns the set of fields that have been explicitly set on this model instance.

data_col

id_col

year

type

Methods

Attributes Documentation

Parameters:
model_computed_fields = {}#
model_config: ClassVar[ConfigDict] = {}#

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

model_extra#

Get extra fields set during validation.

Returns:

A dictionary of extra fields, or None if config.extra is not set to “allow”.

model_fields = {'data_col': FieldInfo(annotation=str, required=True), 'id_col': FieldInfo(annotation=str, required=True), 'type': FieldInfo(annotation=str, required=True), 'year': FieldInfo(annotation=int, required=True)}#
model_fields_set#

Returns the set of fields that have been explicitly set on this model instance.

Returns:
A set of strings representing the fields that have been set,

i.e. that were not filled from defaults.

data_col: str[source]#
id_col: str[source]#
year: int[source]#
type: str[source]#