Esempio n. 1
0
    def ImportDemandBids(self, network: Network):

        filename = DemandBidsCSVStream.DefaultFileName
        if FileType.DemandBids in self.CSVFileNames:
            filename = self.CSVFileNames[FileType.DemandBids]

        filename = filename.format(self.MktDay)
        propertymap = DemandBidsCSVStream.DefaultPropertyToFileMap
        if FileType.DemandBids in self.CSVPropertyMaps:
            propertymap = self.CSVPropertyMaps[FileType.DemandBids]

        with DemandBidsCSVStream(filename, propertymap, self.Encoding) as csv:
            for mb in csv:
                network.AddMktBid(csv.getMktBid())

        return