Skip to content

Commit

Permalink
update sets
Browse files Browse the repository at this point in the history
  • Loading branch information
swryan committed Oct 12, 2023
1 parent 89167e9 commit cc26244
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions openmdao/core/system.py
Original file line number Diff line number Diff line change
Expand Up @@ -1960,14 +1960,14 @@ def _setup_recording(self):
# includes and excludes for inputs are specified using _absolute_ names
# vectors are keyed on absolute name, discretes on relative/promoted name
if options['record_inputs']:
match_names = match_names | set(abs2prom_inputs.keys())
match_names.update(abs2prom_inputs.keys())
myinputs = sorted([n for n in abs2prom_inputs
if check_path(n, incl, excl)])

# includes and excludes for outputs are specified using _promoted_ names
# vectors are keyed on absolute name, discretes on relative/promoted name
if options['record_outputs']:
match_names = match_names | set(abs2prom_output.values())
match_names.update(abs2prom_output.values())
myoutputs = sorted([n for n, prom in abs2prom_output.items()
if check_path(prom, incl, excl)])

Expand All @@ -1980,7 +1980,7 @@ def _setup_recording(self):
myresiduals = myoutputs

elif options['record_residuals']:
match_names = match_names | set(self._residuals.keys())
match_names.update(self._residuals.keys())
myresiduals = [n for n in self._residuals._abs_iter()
if check_path(abs2prom_output[n], incl, excl)]

Expand Down

0 comments on commit cc26244

Please sign in to comment.