Skip to content

Commit

Permalink
Update test/writing_outputs/test_zone_no_resources.jl
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
lbonaldo and github-actions[bot] authored Nov 25, 2024
1 parent e93a444 commit 67821e9
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions test/writing_outputs/test_zone_no_resources.jl
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,19 @@ function prepare_costs_test(test_path, inputs, genx_setup, EP)
end

function prepare_costs_true()
df = DataFrame(["cTotal" 5.177363815260002e12 4.027191550200002e12 1.1501722650599993e12;
"cFix" 0.0 0.0 0.0;
"cVar" 5.849292224195126e-8 0.0 5.849292224195126e-8;
"cFuel" 0.0 0.0 0.0;
"cNSE" 5.177363815260002e12 4.027191550200002e12 1.1501722650599993e12;
"cStart" 0.0 0.0 0.0;
"cUnmetRsv" 0.0 0.0 0.0;
"cNetworkExp" 0.0 0.0 0.0;
"cUnmetPolicyPenalty" 0.0 0.0 0.0;
"cCO2" 0.0 0.0 0.0
], [:Costs, :Total, :Zone1, :Zone2])

df = DataFrame(
["cTotal" 5.177363815260002e12 4.027191550200002e12 1.1501722650599993e12;
"cFix" 0.0 0.0 0.0;
"cVar" 5.849292224195126e-8 0.0 5.849292224195126e-8;
"cFuel" 0.0 0.0 0.0;
"cNSE" 5.177363815260002e12 4.027191550200002e12 1.1501722650599993e12;
"cStart" 0.0 0.0 0.0;
"cUnmetRsv" 0.0 0.0 0.0;
"cNetworkExp" 0.0 0.0 0.0;
"cUnmetPolicyPenalty" 0.0 0.0 0.0;
"cCO2" 0.0 0.0 0.0],
[:Costs, :Total, :Zone1, :Zone2])

df[!, :Costs] = convert(Vector{String}, df[!, :Costs])
df[!, :Total] = convert(Vector{Float64}, df[!, :Total])
df[!, :Zone1] = convert(Vector{Float64}, df[!, :Zone1])
Expand Down

0 comments on commit 67821e9

Please sign in to comment.