From 904504204ca11ff1c3df7024fed6478abd40da6a Mon Sep 17 00:00:00 2001 From: Ross Jennings Date: Mon, 4 Dec 2023 17:06:16 -0500 Subject: [PATCH] Read data from file as complex64 --- cycspec_simulator/guppi_raw.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cycspec_simulator/guppi_raw.py b/cycspec_simulator/guppi_raw.py index dde368a..73502f4 100644 --- a/cycspec_simulator/guppi_raw.py +++ b/cycspec_simulator/guppi_raw.py @@ -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'])