Ejemplo n.º 1
0
 def build(self, config: StudyConfig) -> TREE:
     children: TREE = {
         thermal: OutputSimulationTsNumbersThermalAreaThermal(
             config.next_file(thermal + ".txt"))
         for thermal in config.get_thermal_names(self.area)
     }
     return children
Ejemplo n.º 2
0
 def __init__(self, config: StudyConfig, area: str):
     section = {
         "name": str,
         "group": str,
         "unitcount": int,
         "nominalcapacity": float,
         "market-bid-cost": float,
     }
     types = {ther: section for ther in config.get_thermal_names(area)}
     IniFileNode.__init__(self, config, types)
Ejemplo n.º 3
0
    def build(self, config: StudyConfig) -> TREE:
        children: TREE = dict()

        for timing in config.get_filters_year(self.area):
            # detail files only exists when there is thermal cluster to be detailed
            if len(config.get_thermal_names(self.area, only_enabled=True)) > 0:
                children[f"details-{timing}"] = Details(
                    config.next_file(f"details-{timing}.txt"),
                    timing,
                    self.area,
                )

            children[f"values-{timing}"] = Values(
                config.next_file(f"values-{timing}.txt"), timing, self.area
            )

        return children
Ejemplo n.º 4
0
    def build(self, config: StudyConfig) -> TREE:
        children: TREE = dict()

        filters = config.get_filters_synthesis(self.area)

        for timing in (filters if config.get_thermal_names(
                self.area, only_enabled=True) else []):
            children[f"details-{timing}"] = Details(
                config.next_file(f"details-{timing}.txt"), timing, self.area)

        for timing in filters:
            children[f"id-{timing}"] = Id(config.next_file(f"id-{timing}.txt"),
                                          timing, self.area)

            children[f"values-{timing}"] = Values(
                config.next_file(f"values-{timing}.txt"), timing, self.area)

        return children
Ejemplo n.º 5
0
 def build(self, config: StudyConfig) -> TREE:
     children: TREE = {
         ther: InputThermalPreproAreaThermal(config.next_file(ther))
         for ther in config.get_thermal_names(self.area)
     }
     return children