Changes
Page history
Update Clustering
authored
Nov 15, 2021
by
Christine Nowak
Show whitespace changes
Inline
Side-by-side
PyPSA-eur/Clustering.md
View page @
69f3279a
...
...
@@ -73,12 +73,11 @@ def _make_consense(component, attr):
def consense(x):
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:
file.write(str(v) + "\n")
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()), (
"In {} cluster {} the values of attribute {} do not agree:\n{}"
...
...
@@ -88,9 +87,7 @@ def _make_consense(component, attr):
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.|
...
...
...
...