Skip to content

hotfix#102

Open
VincentJilesen wants to merge 2 commits into
alphafrom
hotfix_expand_parameter_input
Open

hotfix#102
VincentJilesen wants to merge 2 commits into
alphafrom
hotfix_expand_parameter_input

Conversation

@VincentJilesen

Copy link
Copy Markdown
Collaborator

Hotfix voor de bug in het combineren van de tabellen voor de expanded parameter df die naar de berekeningen gaat. Ik heb een test gemaakt om dit te controleren maar deze staat in een andere branch omdat ik daar de database heb uitgebreid zodat deze data beter beschikbaar is.

@VincentJilesen VincentJilesen requested a review from chrispijo June 9, 2026 09:51
@VincentJilesen VincentJilesen self-assigned this Jun 9, 2026
@VincentJilesen VincentJilesen added the bug Something isn't working label Jun 9, 2026
df["parameter_input"] = np.nan
df['parameter_input'] = df['parameter_input'].combine_first(
df_identifiers.copy(deep=True).merge(df_gather, on=["uittredepunt_id", "naam"], how="left")[
'parameter_input'])

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hier is niet te zien waar dit begint. Nu moet ik gaan zoeken naar waar het vierkante haakje opent. En als dit buiten het scherm valt is dat gedoe.

& (df_parameter_invoer_combined["scope"] == "uittredepunt")
& (df_parameter_invoer_combined["ondergrondscenario_naam"].notna()),
["scope_referentie", "ondergrondscenario_naam", "parameter_input"],
].rename(

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

De loc[] eindigt hier waar het vierkante haakje is. Je kan dit opsplitsten als je dat wil. Met een mask en lijst van cols.

@@ -1,5 +1,5 @@
from typing import Dict, List, Optional
from pandas import DataFrame, isna, notna, concat, read_sql, read_csv, set_option
from pandas import DataFrame, Series, notna, concat, read_sql, read_csv, set_option

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Eigenlijk ook niet echt netjes om zoveel functies uit pandas te halen omdat bijvoorbeeld geopandas dezelfde functies heeft en nu is het niet echt duidelijk waar deze vandaan komen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants