Skip to content

Commit

Permalink
Update write_rsv.jl with corrected filenames for RSV (#814)
Browse files Browse the repository at this point in the history
  • Loading branch information
sambuddhac authored Jan 23, 2025
1 parent e0e3dca commit 4daa001
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## Unreleased

### Changed
- Changed the output filename for RSV from `reg_dn.csv` to `reserves.csv`.

## [0.4.2] - 2024-12-23

### Added
Expand Down
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "GenX"
uuid = "5d317b1e-30ec-4ed6-a8ce-8d2d88d7cfac"
authors = ["Bonaldo, Luca", "Chakrabarti, Sambuddha", "Cheng, Fangwei", "Ding, Yifu", "Jenkins, Jesse D.", "Luo, Qian", "Macdonald, Ruaridh", "Mallapragada, Dharik", "Manocha, Aneesha", "Mantegna, Gabe ", "Morris, Jack", "Patankar, Neha", "Pecci, Filippo", "Schwartz, Aaron", "Schwartz, Jacob", "Schivley, Greg", "Sepulveda, Nestor", "Xu, Qingyu", "Zhou, Justin"]
version = "0.4.2-dev.1"
version = "0.4.2-dev.2"

[deps]
CSV = "336ed68f-0bac-5ca0-87d4-7b16caf5d00b"
Expand Down
4 changes: 2 additions & 2 deletions src/write_outputs/reserves/write_rsv.jl
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function write_rsv(path::AbstractString, inputs::Dict, setup::Dict, EP::Model)
dfRsv.AnnualSum = rsv * inputs["omega"]

if setup["WriteOutputs"] == "annual"
write_annual(joinpath(path, "reg_dn.csv"), dfRsv)
write_annual(joinpath(path, "reserves.csv"), dfRsv)
else # setup["WriteOutputs"] == "full"
unmet_vec = value.(EP[:vUNMET_RSV]) * scale_factor
total_unmet = sum(unmet_vec)
Expand All @@ -30,7 +30,7 @@ function write_rsv(path::AbstractString, inputs::Dict, setup::Dict, EP::Model)
rename!(total, auxNew_Names)
rename!(unmet, auxNew_Names)
dfRsv = vcat(dfRsv, unmet, total)
CSV.write(joinpath(path, "reg_dn.csv"),
CSV.write(joinpath(path, "reserves.csv"),
dftranspose(dfRsv, false),
writeheader = false)
end
Expand Down

0 comments on commit 4daa001

Please sign in to comment.