Skip to content

Commit

Permalink
fix to prod factor check
Browse files Browse the repository at this point in the history
  • Loading branch information
adfarth committed Dec 2, 2024
1 parent 9491bb9 commit 5f6def7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/pv.jl
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ mutable struct PV <: AbstractTech
if !(0.0 <= dc_ac_ratio <= 2.0)
push!(invalid_args, "dc_ac_ratio must satisfy 0 <= dc_ac_ratio <= 2, got $(dc_ac_ratio)")
end
if any(x -> x < 0 || x > 1, production_factor_series)
if !isnothing(production_factor_series) && any(x -> x < 0 || x > 1, production_factor_series)
throw(@error("All values in the provided PV production_factor_series must be between 0 and 1."))
end
if length(invalid_args) > 0
Expand Down

0 comments on commit 5f6def7

Please sign in to comment.