digiplan.map.popups#
Provide popups for digiplan.
BatteriesCapacityPopup
#
Bases: RegionPopup
Popup to show battery count.
BatteriesPopup
#
Bases: RegionPopup
Popup to show battery count.
Capacity2045Popup
#
Bases: RegionPopup
Popup to show capacities in 2045.
CapacityPopup
#
CapacitySquare2045Popup
#
Bases: RegionPopup
Popup to show capacities per km² in 2045.
CapacitySquarePopup
#
Bases: RegionPopup
Popup to show capacities per km².
ClusterPopup
#
CompaniesPopup
#
Bases: RegionPopup
Popup to show companies.
ElectricityDemand2045Popup
#
Bases: RegionPopup
Popup to show electricity demand in 2045.
ElectricityDemandCapita2045Popup
#
Bases: RegionPopup
Popup to show electricity demand capita in 2045.
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.
Energy2045Popup
#
Bases: RegionPopup
Popup to show energies.
EnergyCapita2045Popup
#
Bases: RegionPopup
Popup to show energies.
EnergyCapitaPopup
#
Bases: RegionPopup
Popup to show energy shares per population.
get_chart_options()
#
Overwrite title and unit.
EnergyPopup
#
EnergyShare2045Popup
#
Bases: RegionPopup
Popup to show energy shares.
EnergySharePopup
#
EnergySquare2045Popup
#
Bases: RegionPopup
Popup to show energies.
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.
HeatDemandCapita2045Popup
#
Bases: RegionPopup
Popup to show heat demand capita in 2045.
HeatDemandCapitaPopup
#
Bases: RegionPopup
Popup to show heat demand capita.
get_chart_options()
#
Overwrite title and unit.
HeatDemandPopup
#
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.
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².
PVgroundAreaPopup
#
PVgroundAreasApprovedPopup
#
PVgroundAreasOperatingPopup
#
PVgroundAreasPlannedPopup
#
PopulationDensityPopup
#
Bases: RegionPopup
Popup to show Population Density.
PopulationPopup
#
Bases: RegionPopup
Popup to show Population.
PotentialAreaWindSTP2018EG
#
PotentialAreaWindSTP2024VRPopup
#
PotentialPopup
#
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()
#
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