Skip to content

Commit

Permalink
Fix coverter value error
Browse files Browse the repository at this point in the history
  • Loading branch information
gplessm committed Sep 6, 2017
1 parent a06d3e2 commit 1d9a034
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions edisgo/grid/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def _load_equipment_data(self):
index_col='name',
delimiter=',',
decimal='.',
converters={'s_nom': lambda x: int(x)})
converters={'s_nom': lambda x: float(x)})

equipment_mv_parameters_lines = self._config['equipment']['equipment_mv_parameters_lines']
data['MV_lines'] = pd.read_csv(path.join(package_path, equipment_dir,
Expand All @@ -95,8 +95,8 @@ def _load_equipment_data(self):
index_col='name',
delimiter=',',
decimal='.',
converters={'I_max_th': lambda x: int(x),
'U_n': lambda x: int(x)})
converters={'I_max_th': lambda x: float(x),
'U_n': lambda x: float(x)})

equipment_mv_parameters_cables = self._config['equipment']['equipment_mv_parameters_cables']
data['MV_cables'] = pd.read_csv(path.join(package_path, equipment_dir,
Expand All @@ -105,8 +105,8 @@ def _load_equipment_data(self):
index_col='name',
delimiter=',',
decimal='.',
converters={'I_max_th': lambda x: int(x),
'U_n': lambda x: int(x)})
converters={'I_max_th': lambda x: float(x),
'U_n': lambda x: float(x)})

equipment_lv_parameters_cables = self._config['equipment']['equipment_lv_parameters_cables']
data['LV_cables'] = pd.read_csv(path.join(package_path, equipment_dir,
Expand All @@ -115,8 +115,8 @@ def _load_equipment_data(self):
index_col='name',
delimiter=',',
decimal='.',
converters={'I_max_th': lambda x: int(x),
'U_n': lambda x: int(x)})
converters={'I_max_th': lambda x: float(x),
'U_n': lambda x: float(x)})

equipment_lv_parameters_trafos = self._config['equipment']['equipment_lv_parameters_trafos']
data['LV_trafos'] = pd.read_csv(path.join(package_path, equipment_dir,
Expand All @@ -125,7 +125,7 @@ def _load_equipment_data(self):
index_col='name',
delimiter=',',
decimal='.',
converters={'s_nom': lambda x: int(x)})
converters={'s_nom': lambda x: float(x)})

return data

Expand Down

0 comments on commit 1d9a034

Please sign in to comment.