|
1 | 1 | import logging |
2 | | - |
3 | | -logger = logging.getLogger(__name__) |
4 | | - |
5 | 2 | import os |
6 | 3 | import sys |
7 | | -from typing import Dict, List |
8 | 4 |
|
9 | 5 | import geopandas as gpd |
10 | 6 | import pandas as pd |
|
20 | 16 | ) |
21 | 17 | from scripts.prepare_network import maybe_adjust_costs_and_potentials |
22 | 18 |
|
| 19 | +logger = logging.getLogger(__name__) |
| 20 | + |
23 | 21 |
|
24 | 22 | def add_buses(n: pypsa.Network, subnode: pd.Series, name: str) -> None: |
25 | 23 | """ |
@@ -336,11 +334,11 @@ def add_links( |
336 | 334 | name: str, |
337 | 335 | cop: xr.DataArray, |
338 | 336 | direct_heat_source_utilisation_profile: xr.DataArray, |
339 | | - heat_pump_sources: List[str], |
340 | | - direct_utilisation_heat_sources: List[str], |
| 337 | + heat_pump_sources: list[str], |
| 338 | + direct_utilisation_heat_sources: list[str], |
341 | 339 | time_dep_hp_cop: bool, |
342 | | - limited_heat_sources: List[str], |
343 | | - heat_source_potentials: Dict[str, str], |
| 340 | + limited_heat_sources: list[str], |
| 341 | + heat_source_potentials: dict[str, str], |
344 | 342 | ) -> None: |
345 | 343 | """ |
346 | 344 | Add links for a district heating subnode. |
@@ -479,11 +477,11 @@ def add_subnodes( |
479 | 477 | head: int = 40, |
480 | 478 | dynamic_ptes_capacity: bool = False, |
481 | 479 | limit_ptes_potential_mother_nodes: bool = True, |
482 | | - heat_pump_sources: List[str] = None, |
483 | | - direct_utilisation_heat_sources: List[str] = None, |
| 480 | + heat_pump_sources: list[str] = None, |
| 481 | + direct_utilisation_heat_sources: list[str] = None, |
484 | 482 | time_dep_hp_cop: bool = False, |
485 | | - limited_heat_sources: List[str] = None, |
486 | | - heat_source_potentials: Dict[str, str] = None, |
| 483 | + limited_heat_sources: list[str] = None, |
| 484 | + heat_source_potentials: dict[str, str] = None, |
487 | 485 | output_path: str = None, |
488 | 486 | ) -> None: |
489 | 487 | """ |
|
0 commit comments