forked from s_ranjbar/city_retrofit
added new format to weather factory
This commit is contained in:
parent
869cc8fd81
commit
14d4a1a4b8
|
@ -24,7 +24,7 @@ class DatWeatherParameters:
|
|||
try:
|
||||
self._weather_values = pd.read_csv(self._path, sep='\s+', header=None,
|
||||
names=['hour', 'global_horiz', 'temperature', 'diffuse', 'beam', 'empty'])
|
||||
except ValueError:
|
||||
except SystemExit:
|
||||
sys.stderr.write(f'Error: weather file {self._path} not found\n')
|
||||
sys.exit()
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@ class XlsWeatherParameters:
|
|||
'temperature', 'I_sol_vertical_N', 'I_sol_vertical_E',
|
||||
'I_sol_vertical_S', 'I_sol_vertical_W', 'I_sol_45_N', 'I_sol_45_S',
|
||||
'void', 'global_horiz', 'wind_velocity', 'humidity'])
|
||||
except ValueError:
|
||||
except SystemExit:
|
||||
sys.stderr.write(f'Error reading weather file {self._path}\n')
|
||||
sys.exit()
|
||||
|
||||
|
@ -44,4 +44,3 @@ class XlsWeatherParameters:
|
|||
building.global_horizontal['hour'] = new_value
|
||||
else:
|
||||
pd.concat([building.global_horizontal['hour'], new_value], axis=1)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user