Skip to content

Commit

Permalink
Merge branch 'dev' of github.com:openego/eDisGo into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
gplessm committed Sep 7, 2017
2 parents fc3f186 + 7ccb55f commit f9a76c1
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions edisgo/grid/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,47 +85,45 @@ def _load_equipment_data(self):
comment='#',
index_col='name',
delimiter=',',
decimal='.',
converters={'s_nom': lambda x: float(x)})
decimal='.'
)


equipment_mv_parameters_lines = self._config['equipment']['equipment_mv_parameters_lines']
data['MV_lines'] = pd.read_csv(path.join(package_path, equipment_dir,
equipment_mv_parameters_lines),
comment='#',
index_col='name',
delimiter=',',
decimal='.',
converters={'I_max_th': lambda x: float(x),
'U_n': lambda x: float(x)})
decimal='.'
)

equipment_mv_parameters_cables = self._config['equipment']['equipment_mv_parameters_cables']
data['MV_cables'] = pd.read_csv(path.join(package_path, equipment_dir,
equipment_mv_parameters_cables),
comment='#',
index_col='name',
delimiter=',',
decimal='.',
converters={'I_max_th': lambda x: float(x),
'U_n': lambda x: float(x)})
decimal='.'
)

equipment_lv_parameters_cables = self._config['equipment']['equipment_lv_parameters_cables']
data['LV_cables'] = pd.read_csv(path.join(package_path, equipment_dir,
equipment_lv_parameters_cables),
comment='#',
index_col='name',
delimiter=',',
decimal='.',
converters={'I_max_th': lambda x: float(x),
'U_n': lambda x: float(x)})
decimal='.'
)

equipment_lv_parameters_trafos = self._config['equipment']['equipment_lv_parameters_trafos']
data['LV_trafos'] = pd.read_csv(path.join(package_path, equipment_dir,
equipment_lv_parameters_trafos),
comment='#',
index_col='name',
delimiter=',',
decimal='.',
converters={'s_nom': lambda x: float(x)})
decimal='.'
)

return data

Expand Down

0 comments on commit f9a76c1

Please sign in to comment.