Skip to content

Commit

Permalink
Change how ScriptStatePoint print themselves
Browse files Browse the repository at this point in the history
  • Loading branch information
mfisherlevine committed Jul 5, 2023
1 parent 3747c15 commit a0e5394
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions python/lsst/summit/utils/tmaUtils.py
Original file line number Diff line number Diff line change
Expand Up @@ -469,11 +469,8 @@ def _ipython_display_(self):
print(self.__str__())

def __str__(self):
return (
f"time: {self.time.isot}\n"
f"state: {self.state.name}\n"
f"reason: {self.reason}"
)
reasonStr = f": {self.reason}" if self.reason else ""
return (f"{self.state.name:>10} @ {self.time.isot}{reasonStr}")


@dataclass(slots=True, kw_only=True, frozen=True)
Expand Down

0 comments on commit a0e5394

Please sign in to comment.