File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1018,9 +1018,15 @@ def drop_foreign_components(network):
10181018
10191019 if not pf_solve [~ pf_solve .converged ].count ().max () == 0 :
10201020 logger .warning (
1021- "PF of %d snapshots not converged." ,
1021+ "PF of %d snapshots not converged. \n "
1022+ "Generation time series are set to zero for these time steps." ,
10221023 pf_solve [~ pf_solve .converged ].count ().max (),
10231024 )
1025+ network .generators_t .p .loc [~ pf_solve .converged , :] *= 0
1026+ network .generators_t .q .loc [~ pf_solve .converged , :] *= 0
1027+ network .storage_units_t .p .loc [~ pf_solve .converged , :] *= 0
1028+ network .storage_units_t .q .loc [~ pf_solve .converged , :] *= 0
1029+
10241030 if calc_losses :
10251031 calc_line_losses (network , pf_solve ["converged" ])
10261032
@@ -1053,9 +1059,10 @@ def drop_foreign_components(network):
10531059 etrago .export_to_csv (path )
10541060 pf_solve .to_csv (os .path .join (path , "pf_solution.csv" ), index = True )
10551061
1062+ # Save un-solved disaggregated network
10561063 if args ["spatial_disaggregation" ]:
10571064 etrago .disaggregated_network .export_to_csv_folder (
1058- path + "/disaggregated_network"
1065+ args [ "csv_export" ] + "/disaggregated_network"
10591066 )
10601067
10611068 return network
Original file line number Diff line number Diff line change @@ -226,7 +226,7 @@ def __init__(
226226 ignore_standard_types ,
227227 )
228228
229- if self .args ["method" ]["market_optimization" ]:
229+ if self .args ["method" ]["market_optimization" ][ "active" ] :
230230 try :
231231 self .market_model = Network (
232232 csv_folder_name + "/market" ,
You can’t perform that action at this time.
0 commit comments