epic-astronomy / LWA_EPIC

The LWA-specific implementation of the EPIC correlator
http://livetv.epic-astronomy.org
MIT License
3 stars 3 forks source link

Future compatibility #10

Closed mkolopanis closed 4 years ago

mkolopanis commented 4 years ago

Making sure the code can run in py2 and py3, but doing to so by hand so expect some trial/error.

Also making some of our scripts more human readable.

adampbeardsley commented 4 years ago

I did a quick test running: python LWA_bifrost.py --offline --tbnfile=/data5/LWA_SV_data/data_raw/TBN/Jupiter/058161_000086727 --imagesize 64 --imageres 1.79057 --nts 512 --channels 4 --accumulate 50 --ints_per_file 40 on master and on this branch, and the output images are identical. I also ran the same using LWA_bifrost_DFT.py, and also got identical images between master and this branch.

adampbeardsley commented 4 years ago

^ note, I ran these in py2. We'll need to integrate the LSL API changes before running in py3. There's a whole process.

adampbeardsley commented 4 years ago

@HaraKrish would you mind taking a look at this PR? Just get one more set of eyes before we merge in.