Skip to content

Commit

Permalink
Merge pull request #64 from GreenBankObservatory/pedro-devel
Browse files Browse the repository at this point in the history
Fixed errors with summary method in `SDFITSLoad`
  • Loading branch information
astrofle authored Jul 26, 2023
2 parents d2a0c0f + 96c8033 commit c5428d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dysh/fits/sdfitsload.py
Original file line number Diff line number Diff line change
Expand Up @@ -491,13 +491,13 @@ def scans(self,bintable):
scans: int
Number of scans as given by `SCAN` FITS header keyword.
'''
return self.ushow(bintable,'SCAN')
return self.udata(bintable,'SCAN') #self.ushow(bintable,'SCAN')

def _summary(self,bintable):
j=bintable
nrows = self.naxis(j,2)
nflds = self._binheader[j]['TFIELDS']
restfreq = np.unique(self._ptable['RESTFREQ'])/1.0E9
restfreq = np.unique(self._ptable[j]['RESTFREQ'])/1.0E9
#
print("HDU %d" % (j+1))
print("BINTABLE: %d rows x %d cols with %d chans" % (self._nrows[j],nflds,self.nchan(j)))
Expand Down

0 comments on commit c5428d6

Please sign in to comment.