@@ -792,18 +792,14 @@ def __call__(self, *args, **kwargs):
792
792
The function inputs can be passed as keyword argument. For this, use
793
793
the name of the input or the input instance as the key.
794
794
795
- Keyword argument ``output_subset`` is a list of either indices of the
796
- function's outputs or the keys belonging to the `output_keys` dict
797
- and represent outputs that are requested to be calculated. Regardless
798
- of the presence of ``output_subset``, the updates are always calculated
799
- and processed. To disable the updates, you should use the ``copy``
795
+ The updates are always calculated and processed.
796
+ To disable the updates, you should use the ``copy``
800
797
method with ``delete_updates=True``.
801
798
802
799
Returns
803
800
-------
804
801
list
805
- List of outputs on indices/keys from ``output_subset`` or all of them,
806
- if ``output_subset`` is not passed.
802
+ List of outputs.
807
803
"""
808
804
809
805
def restore_defaults ():
@@ -816,10 +812,6 @@ def restore_defaults():
816
812
profile = self .profile
817
813
t0 = time .perf_counter ()
818
814
819
- output_subset = kwargs .pop ("output_subset" , None )
820
- if output_subset is not None and self .output_keys is not None :
821
- output_subset = [self .output_keys .index (key ) for key in output_subset ]
822
-
823
815
# Reinitialize each container's 'provided' counter
824
816
if self .trust_input :
825
817
i = 0
@@ -955,11 +947,7 @@ def restore_defaults():
955
947
# Do the actual work
956
948
t0_fn = time .perf_counter ()
957
949
try :
958
- outputs = (
959
- self .vm ()
960
- if output_subset is None
961
- else self .vm (output_subset = output_subset )
962
- )
950
+ outputs = self .vm ()
963
951
except Exception :
964
952
restore_defaults ()
965
953
if hasattr (self .vm , "position_of_error" ):
@@ -1040,24 +1028,13 @@ def restore_defaults():
1040
1028
profile .ignore_first_call = False
1041
1029
if self .return_none :
1042
1030
return None
1043
- elif self .unpack_single and len (outputs ) == 1 and output_subset is None :
1031
+ elif self .unpack_single and len (outputs ) == 1 :
1044
1032
return outputs [0 ]
1045
1033
else :
1046
1034
if self .output_keys is not None :
1047
1035
assert len (self .output_keys ) == len (outputs )
1048
-
1049
- if output_subset is None :
1050
- return dict (zip (self .output_keys , outputs ))
1051
- else :
1052
- return {
1053
- self .output_keys [index ]: outputs [index ]
1054
- for index in output_subset
1055
- }
1056
-
1057
- if output_subset is None :
1058
- return outputs
1059
- else :
1060
- return [outputs [i ] for i in output_subset ]
1036
+ return dict (zip (self .output_keys , outputs ))
1037
+ return outputs
1061
1038
1062
1039
value = property (
1063
1040
lambda self : self ._value ,
0 commit comments