Skip to content

Commit

Permalink
Make None colum in Fuels_data optional (#720)
Browse files Browse the repository at this point in the history
  • Loading branch information
lbonaldo authored Jul 1, 2024
1 parent e808ea6 commit dd4f77f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
- Fix formatting and images in tutorials 3, 5, 6, and 8 to address issue #697 (#698)
- Fix `devbranch` in the docs `make.jl` file to track the develop branch (#710)
- Fix `TDR` to load `Fuels_data.csv` w/wo optional `None` column (#720)

### Added
- Add objective scaler for addressing problem ill-conditioning (#667)
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.0-dev.9"
version = "0.4.0-dev.10"

[deps]
CSV = "336ed68f-0bac-5ca0-87d4-7b16caf5d00b"
Expand Down
3 changes: 3 additions & 0 deletions src/time_domain_reduction/time_domain_reduction.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1339,6 +1339,7 @@ function cluster_inputs(inpath,
"inputs_p$per",
mysetup["SystemFolder"],
"Fuels_data.csv"))
ensure_column!(fuel_in, "None", 0.0)
select!(fuel_in, Not(:Time_Index))
SepFirstRow = DataFrame(fuel_in[1, :])
NewFuelOutput = vcat(SepFirstRow, FPOutputData)
Expand Down Expand Up @@ -1484,6 +1485,7 @@ function cluster_inputs(inpath,
input_stage_directory,
mysetup["SystemFolder"],
"Fuels_data.csv"))
ensure_column!(fuel_in, "None", 0.0)
select!(fuel_in, Not(:Time_Index))
SepFirstRow = DataFrame(fuel_in[1, :])
NewFuelOutput = vcat(SepFirstRow, FPOutputData)
Expand Down Expand Up @@ -1599,6 +1601,7 @@ function cluster_inputs(inpath,
### TDR_Results/Fuels_data.csv
system_path = joinpath(inpath, mysetup["SystemFolder"])
fuel_in = load_dataframe(joinpath(system_path, "Fuels_data.csv"))
ensure_column!(fuel_in, "None", 0.0)
select!(fuel_in, Not(:Time_Index))
SepFirstRow = DataFrame(fuel_in[1, :])
NewFuelOutput = vcat(SepFirstRow, FPOutputData)
Expand Down

0 comments on commit dd4f77f

Please sign in to comment.