Skip to content

models ¤

Classes:

Attributes:

infrastructure_ch_2050 module-attribute ¤

infrastructure_ch_2050 = Model(
    [
        (
            "mod",
            __from_model(
                "infrastructure/switzerland/ses_main.mod"
            ),
        ),
        (
            "dat",
            __from_data(
                "infrastructure/switzerland/2050/data.dat"
            ),
        ),
        (
            "dat",
            __from_data(
                "infrastructure/switzerland/2050/techs.dat"
            ),
        ),
    ]
)

infrastructure_qc_2020 module-attribute ¤

infrastructure_qc_2020 = Model(
    [
        (
            "mod",
            __from_model(
                "infrastructure/quebec/QC_es_main.mod"
            ),
        ),
        (
            "dat",
            __from_data(
                "infrastructure/quebec/2020/QC_data.dat"
            ),
        ),
        (
            "dat",
            __from_data(
                "infrastructure/quebec/2020/techs_B2D.dat"
            ),
        ),
        (
            "dat",
            __from_data(
                "infrastructure/quebec/2020/mob_techs_dist_B2D.dat"
            ),
        ),
        (
            "dat",
            __from_data(
                "infrastructure/quebec/2020/mob_params.dat"
            ),
        ),
    ]
)

lca_ch_2020 module-attribute ¤

lca_ch_2020 = Model(
    [
        ("mod", __from_model("lca/ch/ses_main.mod")),
        ("dat", __from_data("lca/ch/data.dat")),
        ("dat", __from_data("lca/ch/techs.dat")),
        ("dat", __from_data("lca/ch/techs_mob.dat")),
        ("dat", __from_data("lca/ch/techs_pv.dat")),
        ("dat", __from_data("lca/ch/techs_lcia_JS.dat")),
        ("mod", __from_model("lca/ch/scenarios.mod")),
        ("mod", __from_model("lca/ch/objectives.mod")),
    ]
)

lca_qc_2020 module-attribute ¤

lca_qc_2020 = Model(
    [
        (
            "mod",
            __from_model(
                "infrastructure/quebec/QC_es_main.mod"
            ),
        ),
        (
            "dat",
            __from_data(
                "infrastructure/quebec/2020/QC_data.dat"
            ),
        ),
        (
            "dat",
            __from_data(
                "infrastructure/quebec/2020/techs_B2D.dat"
            ),
        ),
        (
            "dat",
            __from_data(
                "infrastructure/quebec/2020/mob_techs_dist_B2D.dat"
            ),
        ),
        (
            "dat",
            __from_data(
                "infrastructure/quebec/2020/mob_params.dat"
            ),
        ),
        (
            "dat",
            __from_data("lca/quebec/2020/techs_lcia.dat"),
        ),
        ("mod", __from_model("lca/objectives.mod")),
    ]
)

monthly module-attribute ¤

monthly = Model(
    [
        ("mod", __from_model("monthly.mod")),
        ("dat", __from_data("monthly.dat")),
    ]
)

transition module-attribute ¤

transition = Model(
    [
        ("mod", __from_model("transition.mod")),
        ("dat", __from_data("transition.dat")),
    ]
)

typical_days module-attribute ¤

typical_days = Model(
    [
        ("mod", __from_model("typical_days.mod")),
        ("dat", __from_data("typical_days.dat")),
    ]
)

Model dataclass ¤

Parameters:

Attributes:

Source code in src/energyscope/models.py
13
14
15
16
17
18
19
20
21
22
def __init__(self, files: list[tuple[str, Union[str, PathLike]]]):
    """
    Initializes the Model class with an ordered list of files to load.

    Parameters:
        files (list[tuple[str, Union[str, PathLike]]]):
            A list of tuples where each tuple contains the file type ('mod' or 'dat')
            and the file path.
    """
    self.files = files

files instance-attribute ¤

files = files