From 0b33591c7f0fe921058654c2b7f5e72a86e37d54 Mon Sep 17 00:00:00 2001 From: adfarth Date: Fri, 5 Apr 2024 12:20:27 -0600 Subject: [PATCH] fix export_rate_beyond_net_metering_limit type error --- CHANGELOG.md | 4 ++++ src/core/utils.jl | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 66cfa4f83..beff15405 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,6 +23,10 @@ Classify the change according to the following categories: ### Deprecated ### Removed +## Develop - 2024-04-05 +### Fixed +- Added `export_rate_beyond_net_metering_limit` to list of inputs to be converted to type Real, to avoid MethodError if type is vector of Any. + ## v0.44.0 ### Added - in `src/settings.jl`, added new const **INDICATOR_COMPATIBLE_SOLVERS** diff --git a/src/core/utils.jl b/src/core/utils.jl index c43e5c608..3e8eebfa6 100644 --- a/src/core/utils.jl +++ b/src/core/utils.jl @@ -208,7 +208,7 @@ function dictkeys_tosymbols(d::Dict) end end if k in [ - "fuel_cost_per_mmbtu", "wholesale_rate", + "fuel_cost_per_mmbtu", "wholesale_rate", "export_rate_beyond_net_metering_limit", # for ERP "generator_size_kw", "generator_operational_availability", "generator_failure_to_start", "generator_mean_time_to_failure",