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
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)
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
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
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