Skip to content

Commit

Permalink
Fixed conversion of CCCRRRAAA or AAA sets
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathias157 committed Oct 15, 2024
1 parent 2d4b3fa commit 916258e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Modules/aggregate_inputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def loop_and_replace_names(df: pd.DataFrame,
suffix = '_OFF'

# Replace names
idx = df[old_column].str.find(area) != -1
idx = df[old_column] == area
df.loc[idx, old_column] = new_name + suffix

return df
Expand Down Expand Up @@ -188,7 +188,7 @@ def aggregate_parameter(db: gams.GamsDatabase,
f.body.columns = ['']
f.body.index.name = ''
f.body = f.body.to_string()

f.save()

def aggregate_sets(db: gams.GamsDatabase,
Expand Down

0 comments on commit 916258e

Please sign in to comment.