Skip to content

flowmachine.core.server.query_schemas.aggregation_unit

Source: flowmachine/core/server/query_schemas/aggregation_unit.py

Definition of a custom marshmallow field for aggregation units, and function for getting the corresponding SpatialUnit object.

Class AggregationUnitKind

AggregationUnitKind(required=True, **kwargs)
Source: flowmachine/core/server/query_schemas/aggregation_unit.py

A string representing an aggregation unit (for example: "admin0", "admin1", "admin2", ...)

Attributes

Methods

context

context
Source: marshmallow/fields.py

The context dictionary for the parent :class:Schema.

root

root
Source: marshmallow/fields.py

Reference to the Schema that this field belongs to even if it is buried in a container field (e.g. List). Return None for unbound fields.

Class AggregationUnitMixin

AggregationUnitMixin()
Source: flowmachine/core/server/query_schemas/aggregation_unit.py