base_network: parameter_corrections respect column type

This commit is contained in:
Jonas Hörsch 2018-01-30 16:26:04 +01:00
parent a867e245b3
commit 5222b7c288

View File

@ -107,7 +107,7 @@ def _apply_parameter_corrections(n):
r = pd.Series(repls["index"])
else:
raise NotImplementedError()
df.loc[r.index, attr] = r
df.loc[r.index, attr] = r.astype(df[attr].dtype)
def _set_electrical_parameters_lines(lines):
v_noms = snakemake.config['electricity']['voltages']