Skip to content

Commit

Permalink
expand docstring in is_reference
Browse files Browse the repository at this point in the history
  • Loading branch information
Robbybp committed Jan 16, 2021
1 parent 98eb6fd commit 778aee5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pyomo/core/base/indexed_component.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,10 @@ def is_indexed(self):
return self._index is not UnindexedComponent_set

def is_reference(self):
""" Return True if this component is a reference. """
"""Return True if this component is a reference, where
"reference" is interpreted as any component that does not
own its own data.
"""
return self._data is not None and type(self._data) is not dict

def dim(self):
Expand Down

0 comments on commit 778aee5

Please sign in to comment.