2baOrNot2ba / dreamBeam

Radio telescope beam modeling framework
https://dreambeam.readthedocs.io
ISC License
5 stars 6 forks source link

More Python 2/3 Conversion Fixes #6

Closed David-McKenna closed 4 years ago

David-McKenna commented 4 years ago

Hey Tobia, here's another issue from the python 2/3 conversion fixed and a better fix put in place from the one I gave you in rt.py yesterday. Cheers

feedplugins.py: I'm guessing that previously the array would be padded with a None if only 1 value was returned, this is a bit hack-y, but work.

rt.py: Better fix compared to yesterday, convert the numpy array type rather than the resulting values. Convert the positions zip to a list as zips are enumerators in python 3 and cannot be indexed

2baOrNot2ba commented 4 years ago

This PR has now been superseded by recent commits on master branch. Thanks.