Skip to content

digiplan.map.popups#

Provide popups for digiplan.

BatteriesCapacityPopup #

Bases: RegionPopup

Popup to show battery count.

get_chart_data() #

Return single value for employeess in current municipality.

get_chart_options() #

Overwrite title and unit.

BatteriesPopup #

Bases: RegionPopup

Popup to show battery count.

get_chart_data() #

Return single value for employeess in current municipality.

get_chart_options() #

Overwrite title and unit.

Capacity2045Popup #

Bases: RegionPopup

Popup to show capacities in 2045.

get_chart_data() #

Create capacity chart data for SQ and future scenario.

get_chart_options() #

Overwrite title and unit.

CapacityPopup #

Bases: RegionPopup

Popup to show capacities.

CapacitySquare2045Popup #

Bases: RegionPopup

Popup to show capacities per km² in 2045.

get_chart_data() #

Create capacity chart data for SQ and future scenario.

get_chart_options() #

Overwrite title and unit.

CapacitySquarePopup #

Bases: RegionPopup

Popup to show capacities per km².

get_chart_options() #

Overwrite title and unit.

get_detailed_data() #

Return capacities per square kilometer.

ClusterPopup #

Bases: Popup

Popup for clusters.

__init__(lookup, selected_id, **kwargs) #

Initialize popup with default cluster template.

get_context_data() #

Return cluster data as context data.

CompaniesPopup #

Bases: RegionPopup

Popup to show companies.

get_chart_data() #

Return single value for companies in current municipality.

get_chart_options() #

Overwrite title and unit.

ElectricityDemand2045Popup #

Bases: RegionPopup

Popup to show electricity demand in 2045.

get_chart_data() #

Create capacity chart data for SQ and future scenario.

get_chart_options() #

Overwrite title and unit.

ElectricityDemandCapita2045Popup #

Bases: RegionPopup

Popup to show electricity demand capita in 2045.

get_chart_data() #

Create capacity chart data for SQ and future scenario.

get_chart_options() #

Overwrite title and unit.

ElectricityDemandCapitaPopup #

Bases: RegionPopup

Popup to show electricity demand capita.

get_chart_options() #

Overwrite title and unit.

ElectricityDemandPopup #

Bases: RegionPopup

Popup to show electricity demand.

get_chart_options() #

Overwrite title and unit.

EmployeesPopup #

Bases: RegionPopup

Popup to show employees.

get_chart_data() #

Return single value for employeess in current municipality.

get_chart_options() #

Overwrite title and unit.

Energy2045Popup #

Bases: RegionPopup

Popup to show energies.

get_chart_data() #

Create capacity chart data for SQ and future scenario.

get_chart_options() #

Overwrite title and unit.

EnergyCapita2045Popup #

Bases: RegionPopup

Popup to show energies.

get_chart_data() #

Create capacity chart data for SQ and future scenario.

get_chart_options() #

Overwrite title and unit.

EnergyCapitaPopup #

Bases: RegionPopup

Popup to show energy shares per population.

get_chart_options() #

Overwrite title and unit.

EnergyPopup #

Bases: RegionPopup

Popup to show energies.

get_chart_options() #

Overwrite title and unit.

EnergyShare2045Popup #

Bases: RegionPopup

Popup to show energy shares.

get_chart_data() #

Create capacity chart data for SQ and future scenario.

get_chart_options() #

Overwrite title and unit.

EnergySharePopup #

Bases: RegionPopup

Popup to show energy shares.

get_chart_options() #

Overwrite title and unit.

EnergySquare2045Popup #

Bases: RegionPopup

Popup to show energies.

get_chart_data() #

Create capacity chart data for SQ and future scenario.

get_chart_options() #

Overwrite title and unit.

EnergySquarePopup #

Bases: RegionPopup

Popup to show energy shares per km².

get_chart_options() #

Overwrite title and unit.

HeatDemand2045Popup #

Bases: RegionPopup

Popup to show heat demand in 2045.

get_chart_data() #

Create capacity chart data for SQ and future scenario.

get_chart_options() #

Overwrite title and unit.

HeatDemandCapita2045Popup #

Bases: RegionPopup

Popup to show heat demand capita in 2045.

get_chart_data() #

Create capacity chart data for SQ and future scenario.

get_chart_options() #

Overwrite title and unit.

HeatDemandCapitaPopup #

Bases: RegionPopup

Popup to show heat demand capita.

get_chart_options() #

Overwrite title and unit.

HeatDemandPopup #

Bases: RegionPopup

Popup to show heat demand.

get_chart_options() #

Overwrite title and unit.

NumberWindturbines2045Popup #

Bases: RegionPopup

Popup to show the number of wind turbines in 2045.

get_chart_data() #

Create capacity chart data for SQ and future scenario.

get_chart_options() #

Overwrite title and unit.

get_detailed_data() #

Return quantity of wind turbines per municipality (index).

get_municipality_value() #

Return aggregated data for all technologies for given municipality ID.

get_region_value() #

Return aggregated data of all municipalities and technologies.

NumberWindturbinesPopup #

Bases: RegionPopup

Popup to show the number of wind turbines.

get_chart_data() #

Return single value for wind turbines in current municipality.

get_detailed_data() #

Return quantity of wind turbines per municipality (index).

NumberWindturbinesSquare2045Popup #

Bases: RegionPopup

Popup to show the number of wind turbines per km² in 2045.

get_chart_data() #

Return single value for wind turbines in current municipality.

get_chart_options() #

Overwrite title and unit in chart options.

get_detailed_data() #

Return quantity of wind turbines per municipality (index).

get_municipality_value() #

Return aggregated data for all technologies for given municipality ID.

get_region_value() #

Return aggregated data of all municipalities and technologies.

NumberWindturbinesSquarePopup #

Bases: RegionPopup

Popup to show the number of wind turbines per km².

get_chart_data() #

Return single value for wind turbines in current municipality.

get_chart_options() #

Overwrite title and unit in chart options.

get_detailed_data() #

Return quantity of wind turbines per municipality (index).

PVgroundAreaPopup #

Bases: Popup

Popup for any entity showing table with attributes.

__init__(lookup, selected_id, **kwargs) #

Initialize popup with table template.

get_context_data() #

Return cluster data as context data.

PVgroundAreasApprovedPopup #

Bases: PVgroundAreaPopup

Popup for approved PV ground units (dataset by RPG with areas).

PVgroundAreasOperatingPopup #

Bases: PVgroundAreaPopup

Popup for operating PV ground units (dataset by RPG with areas).

PVgroundAreasPlannedPopup #

Bases: PVgroundAreaPopup

Popup for planned PV ground units (dataset by RPG with areas).

PopulationDensityPopup #

Bases: RegionPopup

Popup to show Population Density.

get_chart_options() #

Overwrite title and unit.

get_detailed_data() #

Return population data squared.

get_municipality_value() #

Return municipality value for status quo year.

get_region_value() #

Return region value for status quo year.

PopulationPopup #

Bases: RegionPopup

Popup to show Population.

get_detailed_data() #

Return population data.

get_municipality_value() #

Return municipality value for status quo year.

get_region_value() #

Return region value for status quo year.

PotentialAreaWindSTP2018EG #

Bases: WindAreaPopup

Popup for planned wind turbines (dataset by RPG with areas).

PotentialAreaWindSTP2024VRPopup #

Bases: WindAreaPopup

Popup for planned wind turbines (dataset by RPG with areas).

PotentialPopup #

Bases: ChartPopup

Popup for potential data.

get_chart_options() #

Return chart data to build chart from in JS.

Returns#

dict chart data ready to use in ECharts in JS

get_context_data() #

Get context data for rendering template.

RegionPopup #

Bases: ChartPopup

Popup containing values for municipality and region in header.

__init__(lookup, selected_id, map_state=None, template=None) #

Initialize parent popup class and adds initialization of detailed data.

get_chart_data() #

Return data for given municipality ID.

get_chart_options() #

Return chart data to build chart from in JS.

Returns#

dict chart data ready to use in ECharts in JS

get_context_data() #

Set up context data including municipality and region values.

Returns#

dict context dict including region and municipality data

get_detailed_data() abstractmethod #

Return detailed data for each municipality and technology/component.

Municipality IDs are stored in index, components/technologies/etc. are stored in columns

get_municipality_value() #

Return aggregated data for all technologies for given municipality ID.

get_region_name() #

Return name of the selected region.

get_region_value() #

Return aggregated data of all municipalities and technologies.

SimulationPopup #

Bases: RegionPopup, ABC

Popup with simulation based context.

__init__(lookup, selected_id, map_state=None, template=None) #

Init simulation popup.

Parameters#

lookup: str Lookup name selected_id: int ID of selected feature map_state: Optional[dict] Current state of map. Includes current simulation ID template: Optional[str] Template to render popup. If not given template using lookup name is used

WindAreaPopup #

Bases: Popup

Wind area popup.

__init__(lookup, selected_id, **kwargs) #

Initialize popup with table template.

get_context_data() #

Return cluster data as context data.

WindTurbine2ApprovedPopup #

Bases: WindTurbine2ClusterPopup

Popup for approved wind turbines (dataset by RPG with areas).

WindTurbine2ClusterPopup #

Bases: Popup

Popup for any entity showing table with attributes.

__init__(lookup, selected_id, **kwargs) #

Initialize popup with default cluster template.

get_context_data() #

Return cluster data as context data.

WindTurbine2OperatingPopup #

Bases: WindTurbine2ClusterPopup

Popup for operating wind turbines (dataset by RPG with areas).

WindTurbine2PlannedPopup #

Bases: WindTurbine2ClusterPopup

Popup for planned wind turbines (dataset by RPG with areas).