Update Clustering authored by Christine Nowak's avatar Christine Nowak
...@@ -73,12 +73,11 @@ def _make_consense(component, attr): ...@@ -73,12 +73,11 @@ def _make_consense(component, attr):
def consense(x): def consense(x):
v = x.iat[0] v = x.iat[0]
** # Troubleshooting error: AssertionError: In Bus cluster country the values of attribute country do not agree # Troubleshooting error: AssertionError: In Bus cluster country the values of attribute country do not agree
with open("error_v.csv","w") as file: with open("error_v.csv","w") as file:
file.write(str(v) + "\n") file.write(str(v) + "\n")
x_df = pd.DataFrame(x) x_df = pd.DataFrame(x)
x_df.to_csv("error_x_df.csv")** x_df.to_csv("error_x_df.csv")
assert ((x == v).all() or x.isnull().all()), ( assert ((x == v).all() or x.isnull().all()), (
"In {} cluster {} the values of attribute {} do not agree:\n{}" "In {} cluster {} the values of attribute {} do not agree:\n{}"
...@@ -88,9 +87,7 @@ def _make_consense(component, attr): ...@@ -88,9 +87,7 @@ def _make_consense(component, attr):
return consense return consense
``` ```
Alter the differing country in the corresponding bus in your custom_busmap_elec_s_NUMBERNODES.csv and restart your snakemake command. Alter the differing country in the corresponding bus in your custom_busmap_elec_s_NUMBERNODES.csv and restart your snakemake command.|
|
... ...
......