Skip to content

Commit 91f56e2

Browse files
committed
Changed repr of constants (issue astropy#4145)
Changed error to uncertainty and units to unit Closes astropy#4145
1 parent c648058 commit 91f56e2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎astropy/constants/constant.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def __new__(cls, abbrev, name, value, unit, uncertainty, reference,
118118
return inst
119119

120120
def __repr__(self):
121-
return ('<Constant name={0!r} value={1} error={2} units={3!r} '
121+
return ('<Constant name={0!r} value={1} uncertainty={2} unit={3!r} '
122122
'reference={4!r}>'.format(self.name, self.value,
123123
self.uncertainty, str(self.unit),
124124
self.reference))

0 commit comments

Comments
 (0)