Skip to content

price.py

Evaluate nodal prices per energy bus carrier.

view_price_map(result_path, nc, config)

Export nodal prices to file using Folium.

Parameters:

Name Type Description Default
result_path str | pathlib.Path

The path to the results directory.

required
nc pypsa.NetworkCollection

The loaded networks.

required
config dict

Configuration dictionary.

required
Source code in evals/views/price.py
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
def view_price_map(
    result_path: str | Path,
    nc: NetworkCollection,
    config: dict,
) -> None:
    """
    Export nodal prices to file using Folium.

    Parameters
    ----------
    result_path : str | Path
        The path to the results directory.
    nc : NetworkCollection
        The loaded networks.
    config : dict
        Configuration dictionary.
    """
    statistics = []

    # marginal_cost = collect_myopic_statistics(nc, "")

    exporter = Exporter(statistics=statistics, view_config=config["view"])
    exporter.export(result_path, subdir=config["view"]["subdir"])