From 763b81fd78be8b40845c63003bfbfda2fdc71ce4 Mon Sep 17 00:00:00 2001 From: lbonaldo Date: Wed, 6 Nov 2024 18:23:09 -0500 Subject: [PATCH] cleanup --- src/model/resources/resources.jl | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/model/resources/resources.jl b/src/model/resources/resources.jl index 6186be161..7f42700bf 100644 --- a/src/model/resources/resources.jl +++ b/src/model/resources/resources.jl @@ -66,9 +66,7 @@ Allows to set the attribute `sym` of an `AbstractResource` object using dot synt - `value`: The value to set for the attribute. """ -Base.setproperty!(r::AbstractResource, sym::Symbol, value) = setindex!(parent(r), - value, - sym) +Base.setproperty!(r::AbstractResource, sym::Symbol, value) = setindex!(parent(r), value, sym) """ haskey(r::AbstractResource, sym::Symbol) @@ -254,8 +252,7 @@ julia> findall(r -> max_cap_mwh(r) != 0, gen.Storage) 50 ``` """ -Base.findall(f::Function, rs::Vector{<:AbstractResource}) = resource_id.(filter(r -> f(r), - rs)) +Base.findall(f::Function, rs::Vector{<:AbstractResource}) = resource_id.(filter(r -> f(r), rs)) """ interface(name, default=default_zero, type=AbstractResource)