Skip to content

Commit

Permalink
fixed nbits for dada
Browse files Browse the repository at this point in the history
Signed-off-by: Devansh Agarwal <[email protected]>
  • Loading branch information
devanshkv committed Apr 21, 2021
1 parent 13c4685 commit 4fdf9eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions your/writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,12 +378,12 @@ def dada_header(self):
header["FREQ"] = str((self.chan_freqs[0] + self.chan_freqs[-1]) / 2)
tstart = Time(self.tstart, format="mjd")
header["MJD_START"] = str(self.tstart)
header["NBIT"] = str(self.your_object.your_header.nbits)
header["NBIT"] = str(int(self.your_object.your_header.dtype.itemsize * 8))
header["TSAMP"] = str(self.your_object.your_header.tsamp * 1e6)
header["HDR_SIZE"] = "4096"
header["NCHAN"] = str(self.nchans)
header["OBS_OFFSET"] = str(0)
header["NPOL"] = str(1) # self.your_object.your_header.npol)
header["NPOL"] = str(1)
header["UTC_START"] = str(tstart.utc.iso.replace(" ", "-"))
return header

Expand Down

0 comments on commit 4fdf9eb

Please sign in to comment.