Skip to content

Commit

Permalink
one more cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
DKilkenny committed Jul 22, 2020
1 parent 274e008 commit fc0124d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions openmdao/core/system.py
Original file line number Diff line number Diff line change
Expand Up @@ -2491,9 +2491,7 @@ def add_design_var(self, name, lower=None, upper=None, ref=None, ref0=None, indi

if indices is not None:

if isinstance(indices, slice):
pass
elif _is_ellipsis(indices):
if isinstance(indices, slice) or _is_ellipsis(indices):
pass
# If given, indices must be a sequence
elif not (isinstance(indices, Iterable) and
Expand Down
4 changes: 2 additions & 2 deletions openmdao/utils/general_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -987,7 +987,7 @@ def _is_slice(indices):
Parameters
----------
indices : ndarray
Dotted pathnames of systems.
Slice indices to check.
Returns
-------
Expand All @@ -1004,7 +1004,7 @@ def _is_ellipsis(indices):
Parameters
----------
indices : ndarray
Dotted pathnames of systems.
Ellipsis indices to check.
Returns
-------
Expand Down

0 comments on commit fc0124d

Please sign in to comment.