Skip to content

Commit

Permalink
Fix: remove duplicate tmp_create_constraints_indices
Browse files Browse the repository at this point in the history
  • Loading branch information
abelsiqueira committed Oct 29, 2024
1 parent c1a1327 commit 6aef155
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/model-preparation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,12 @@ function construct_dataframes(
dataframes[:highest_in_out].index = 1:size(dataframes[:highest_in_out], 1)

# WIP: highest_in is not included in constraints_partition anymore
tmp_create_constraints_indices(connection)
dataframes[:highest_in] = TulipaIO.get_table(connection, "cons_indices_highest_in")
dataframes[:highest_in] =
DuckDB.query(
connection,
"SELECT * FROM cons_indices_highest_in
ORDER BY asset, year, rep_period, time_block_start",
) |> DataFrame
dataframes[:highest_in].timesteps_block = map(
r -> r[1]:r[2],
zip(dataframes[:highest_in].time_block_start, dataframes[:highest_in].time_block_end),
Expand Down

0 comments on commit 6aef155

Please sign in to comment.