Skip to content

Commit

Permalink
str function for mapbase
Browse files Browse the repository at this point in the history
  • Loading branch information
sidhu1012 committed Sep 11, 2020
1 parent 532e5ab commit 8d262f1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sunpy/map/mapbase.py
Expand Up @@ -254,6 +254,9 @@ def _text_summary(self):
self._reference_latitude)),
tmf=TIME_FORMAT)

def __str__(self):
return object.__str__(self) + "\n" + self._text_summary() + "\n" + self.data.__str__()

def __repr__(self):
return object.__repr__(self) + "\n" + self._text_summary() + "\n" + self.data.__repr__()

Expand Down

0 comments on commit 8d262f1

Please sign in to comment.