Skip to content

Commit

Permalink
Read data from file as complex64
Browse files Browse the repository at this point in the history
  • Loading branch information
rossjjennings committed Dec 4, 2023
1 parent c8fa992 commit 9045042
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cycspec_simulator/guppi_raw.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def read_raw(filename, use_dask=True):

def read(filename, use_dask=True):
headers, data = read_raw(filename, use_dask=use_dask)
complex_data = data[..., 0] + 1j*data[..., 1]
complex_data = data[..., 0] + np.complex64(1j)*data[..., 1]
A = complex_data[..., 0]
B = complex_data[..., 0]
start_time = Time(headers[0]['STT_IMJD'], headers[0]['STT_SMJD'], headers[0]['STT_OFFS'])
Expand Down

0 comments on commit 9045042

Please sign in to comment.