Skip to content

Commit b6fedf4

Browse files
committed
Add missing 'value' property to _PyomoUnit
1 parent d506aea commit b6fedf4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pyomo/core/base/units_container.py

+4
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,10 @@ def __call__(self, exception=True):
404404
"""
405405
return 1.0
406406

407+
@property
408+
def value(self):
409+
return 1.0
410+
407411
def pprint(self, ostream=None, verbose=False):
408412
"""Display a user readable string description of this object."""
409413
if ostream is None: # pragma:nocover

0 commit comments

Comments
 (0)