Skip to content

Commit

Permalink
Match column name and content, add column CashFlow
Browse files Browse the repository at this point in the history
  • Loading branch information
kemihak committed Nov 4, 2024
1 parent b3d4bd6 commit de0364f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

BUGFIXES :
* `setSimulationPathAPI()` : encode URL before reading the data in simulation mode
* `readAntares()` : In disk mode, return all the available columns for a short-term storage output and match the column with the content

BREAKING CHANGES :
* `setSimulationPathAPI()` : reads and returns the new converted study version format (ex : 9.0 => 900)
Expand Down
5 changes: 3 additions & 2 deletions inst/format_output/simulation_variables_names_by_support.csv
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@
"Generation / Thermal";"details";"Profit by plant";4;"Net Profit by Thermal Cluster (€)";"profitByPlant";830;"Profit - Euro";"profit"
"Generation / Renewables";"details-res";"RES generation by plant";1;"Renewable Energy Generation by Power Plant Cluster (MWh)";"resGenerationByPlant";810;"MWh";"production"
"Generation / Short-Term Storages";"details-STstorage";"STS inj by plant";1;"Short-Term Storage Injection by Power Plant (MWh)";"stsInjByPlant";860;"P-injection - MW";"P.injection"
"Generation / Short-Term Storages";"details-STstorage";"STS lvl by plant";2;"Short-Term Storage Level by Power Plant (MWh)";"stsLvlByPlant";860;"Levels - MWh";"levels"
"Generation / Short-Term Storages";"details-STstorage";"STS withdrawal by plant";3;"Short-Term Storage Withdrawal by Power Plant (MWh)";"stsWithdrawalByPlant";860;"P-withdrawal - MW";"P.withdrawal"
"Generation / Short-Term Storages";"details-STstorage";"STS withdrawal by plant";2;"Short-Term Storage Withdrawal by Power Plant (MWh)";"stsWithdrawalByPlant";860;"P-withdrawal - MW";"P.withdrawal"
"Generation / Short-Term Storages";"details-STstorage";"STS lvl by plant";3;"Short-Term Storage Level by Power Plant (MWh)";"stsLvlByPlant";860;"Levels - MWh";"levels"
"Generation / Short-Term Storages";"details-STstorage";"STS Cashflow By Cluster";4;"Storage Cashflow by Thermal Cluster (€)";"stsCashflowByCluster";880;"CashFlow - Euro";"Cashflow"
2 changes: 1 addition & 1 deletion tests/testthat/test-importOutputForClusters.R
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ test_that(".importOutputForSTClusters is ok", {
opts=opts
)

required_order_simulation_variables <- c("P.injection","levels","P.withdrawal")
required_order_simulation_variables <- c("P.injection","P.withdrawal","levels")

order_simulation_variables <- colnames(OutputForSTClusters)[colnames(OutputForSTClusters) %in% required_order_simulation_variables]

Expand Down

0 comments on commit de0364f

Please sign in to comment.