ZoneSystemInfo#

class caf.space.inputs.ZoneSystemInfo(*, name, shapefile, id_col)#

Bases: BaseConfig

Base class for storing information about a shapefile input.

Parameters:
  • name (str) – The name of the zone system you are providing. This should be as simple as possible, so for and MSOA shapefile, name should simply be ‘msoa’.

  • shapefile (Path) – Path to the shapefile.

  • id_col (str) – The name of the unique ID column in your chosen shapefile. This can be any column as long as it is unique for each zone in the shapefile.

Attributes Summary

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_fields

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo] objects.

Attributes Documentation

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

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

model_config: ClassVar[ConfigDict] = {}#

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

model_fields: ClassVar[Dict[str, FieldInfo]] = {'id_col': FieldInfo(annotation=str, required=True), 'name': FieldInfo(annotation=str, required=True), 'shapefile': FieldInfo(annotation=Path, required=True)}#

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.