Skip to content

Commit

Permalink
Expect consistent importing in SpherePoint.__repr__.
Browse files Browse the repository at this point in the history
Having one symbol (SpherePoint) assumed to be imported as

    from lsst.geom import SpherePoint

while the other (degrees) is assumed to be imported via

    from lsst import geom

in order to eval() a single repr() doesn't make sense, especially
when our code never uses the latter pattern anyway.
  • Loading branch information
TallJimbo committed Jan 20, 2022
1 parent e6b7664 commit d2156a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/lsst/geom/_SpherePoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def __iter__(self):
yield self[i]

def __repr__(self):
argList = ["%r*geom.degrees" % (pos.asDegrees(),) for pos in self]
argList = ["%r*degrees" % (pos.asDegrees(),) for pos in self]
return "SpherePoint(%s)" % (", ".join(argList))

@staticmethod
Expand Down

0 comments on commit d2156a9

Please sign in to comment.