|
@@ -42,14 +42,14 @@ def material(input_file, isDq=True):
|
|
if args['switch_nwp_owner']:
|
|
if args['switch_nwp_owner']:
|
|
nwp_v, nwp_v_h = nwp_own, nwp_own_h
|
|
nwp_v, nwp_v_h = nwp_own, nwp_own_h
|
|
# 如果是风电
|
|
# 如果是风电
|
|
- if plant_type < 2:
|
|
|
|
|
|
+ if plant_type == 0:
|
|
station_info = pd.read_csv(input_file / station_info_w, sep='\s+', header=0)
|
|
station_info = pd.read_csv(input_file / station_info_w, sep='\s+', header=0)
|
|
station_info_d = pd.read_csv(input_file / station_info_d_w, sep='\s+', header=0)
|
|
station_info_d = pd.read_csv(input_file / station_info_d_w, sep='\s+', header=0)
|
|
nwp = pd.read_csv(input_file / nwp_w, sep='\s+', header=0)
|
|
nwp = pd.read_csv(input_file / nwp_w, sep='\s+', header=0)
|
|
nwp_h = pd.read_csv(input_file / nwp_w_h, sep='\s+', header=0)
|
|
nwp_h = pd.read_csv(input_file / nwp_w_h, sep='\s+', header=0)
|
|
return station_info, station_info_d, nwp, nwp_h, power, nwp_v, nwp_v_h
|
|
return station_info, station_info_d, nwp, nwp_h, power, nwp_v, nwp_v_h
|
|
# 如果是光伏
|
|
# 如果是光伏
|
|
- elif plant_type == 2:
|
|
|
|
|
|
+ elif plant_type == 1:
|
|
station_info = pd.read_csv(input_file / station_info_s, sep='\s+', header=0)
|
|
station_info = pd.read_csv(input_file / station_info_s, sep='\s+', header=0)
|
|
station_info_d = pd.read_csv(input_file / station_info_d_s, sep='\s+', header=0)
|
|
station_info_d = pd.read_csv(input_file / station_info_d_s, sep='\s+', header=0)
|
|
nwp = pd.read_csv(input_file / nwp_s, sep='\s+', header=0)
|
|
nwp = pd.read_csv(input_file / nwp_s, sep='\s+', header=0)
|