@@ -23,8 +23,15 @@ PSY.get_components(
23
23
) where {T <: IS.InfrastructureSystemsComponent } =
24
24
IS. get_components (filter_func, T, res; subsystem_name = subsystem_name)
25
25
26
- PSY. get_components (selector:: IS.ComponentSelector , res:: IS.Results ; kwargs... ) =
27
- IS. get_components (selector, res; kwargs... )
26
+ PSY. get_components (
27
+ scope_limiter:: Union{Function, Nothing} ,
28
+ selector:: IS.ComponentSelector ,
29
+ res:: IS.Results ,
30
+ ) =
31
+ IS. get_components (scope_limiter, selector, res)
32
+
33
+ PSY. get_components (selector:: IS.ComponentSelector , res:: IS.Results ) =
34
+ IS. get_components (selector, res)
28
35
29
36
# get_component
30
37
"""
@@ -41,13 +48,27 @@ PSY.get_component(
41
48
) where {T <: IS.InfrastructureSystemsComponent } =
42
49
IS. get_component (T, res, name)
43
50
44
- PSY. get_component (selector:: IS.SingularComponentSelector , res:: IS.Results ; kwargs... ) =
45
- IS. get_component (selector, res; kwargs... )
51
+ PSY. get_component (
52
+ scope_limiter:: Union{Function, Nothing} ,
53
+ selector:: IS.SingularComponentSelector ,
54
+ res:: IS.Results ,
55
+ ) =
56
+ IS. get_component (scope_limiter, selector, res)
57
+
58
+ PSY. get_component (selector:: IS.SingularComponentSelector , res:: IS.Results ) =
59
+ IS. get_component (selector, res)
46
60
47
61
# get_groups
48
62
"""
49
63
Calling `get_groups` on a `Results` is the same as calling [`get_available_groups`](@ref) on
50
64
the system attached to the results.
51
65
"""
52
- PSY. get_groups (selector:: IS.ComponentSelector , res:: IS.Results ; kwargs... ) =
53
- IS. get_groups (selector, res; kwargs... )
66
+ PSY. get_groups (
67
+ scope_limiter:: Union{Function, Nothing} ,
68
+ selector:: IS.ComponentSelector ,
69
+ res:: IS.Results ,
70
+ ) =
71
+ IS. get_groups (scope_limiter, selector, res)
72
+
73
+ PSY. get_groups (selector:: IS.ComponentSelector , res:: IS.Results ) =
74
+ IS. get_groups (selector, res)
0 commit comments