ColumbiaCMB / kid_readout

Code for the ROACH KID readout.
BSD 2-Clause "Simplified" License
4 stars 7 forks source link

Change bad or missing sample value to nan + 1j * nan #18

Closed danielflanigan closed 8 years ago

danielflanigan commented 8 years ago

Setting a complex variable (or array) to NaN or np.nan gives nan + 0j, and the imaginary part of this is not NaN.

@mabitbol Let's change the fill value for bad or missing samples to nan + 1j * nan (or nan * (1 + 1j), whatever) so that calculations don't accidentally treat the imaginary part of these samples as good data.