Skip to content

Commit 482cf9a

Browse files
committed
Do NOT divide fuel cost by time_steps_per_hour
1 parent ce10fb2 commit 482cf9a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/core/utils.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ end
291291
Convert a per hour value (eg. dollars/kWh) to time series that matches the settings.time_steps_per_hour
292292
"""
293293
function per_hour_value_to_time_series(x::T, time_steps_per_hour::Int, name::String) where T <: Real
294-
repeat([x / time_steps_per_hour], 8760 * time_steps_per_hour)
294+
repeat([x], 8760 * time_steps_per_hour)
295295
end
296296

297297

@@ -309,7 +309,7 @@ function per_hour_value_to_time_series(x::AbstractVector{<:Real}, time_steps_per
309309
if length(x) == 12 # assume monthly values
310310
for mth in 1:12
311311
append!(vals, repeat(
312-
[x[mth] / time_steps_per_hour],
312+
[x[mth]],
313313
time_steps_per_hour * 24 * daysinmonth(Date("2017-" * string(mth)))
314314
)
315315
)

0 commit comments

Comments
 (0)