2baOrNot2ba / dreamBeam

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

Convert Station Names from Bytes to Strings to prevent several errors #3

Closed David-McKenna closed 4 years ago

David-McKenna commented 4 years ago

Hey Tobia,

Ran into another issue while testing out the sample scripts which is likely a side effect of the python2/3 transition, the values for station names seem to be stored as bytes, which when automatically converted to strings in python 3 get wrapped with b'', this is a quick patch that will convert these bytes to strings to prevent several errors such as file not found from the extra characters and missing function errors as ''.join(variable) can no longer be called on bytestrings.

Cheers

2baOrNot2ba commented 4 years ago

Indeed a python 2to3 issue. Accept fix for now, but should ultimately be fixed in function that reads the config files.