From 15beb44aa208a3cd73f1437f0bfe4b5351715c3b Mon Sep 17 00:00:00 2001 From: Daniel D'Avella Date: Thu, 15 Feb 2018 13:09:12 -0500 Subject: [PATCH] Display axes in summary of NonstandardExtHDU --- astropy/io/fits/hdu/base.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/astropy/io/fits/hdu/base.py b/astropy/io/fits/hdu/base.py index 57ab68a8d8d7..4af52b055a3e 100644 --- a/astropy/io/fits/hdu/base.py +++ b/astropy/io/fits/hdu/base.py @@ -1596,7 +1596,8 @@ def match_header(cls, header): xtension not in standard_xtensions) def _summary(self): - return (self.name, self.ver, 'NonstandardExtHDU', len(self._header)) + axes = tuple(self.data.shape) + return (self.name, self.ver, 'NonstandardExtHDU', len(self._header), axes) @lazyproperty def data(self):