mousset / qubic

Data analysis tools for the QUBIC experiment.
3 stars 2 forks source link

Wrong reference to string instead of byte stream #6

Closed planck2007 closed 5 years ago

planck2007 commented 5 years ago

In instrument.py at lines 385 and 397 there is a reference to the labels of the names dictionary. line 385: indf = names.index('ndf') - 2 line 392: ib2b = names.index('ba2ba') This raises an error because the labels have been defined as byte streams (i.e. b'ndf' and b'ba2ba) Therefore the above lines should change to: line 385: indf = names.index(b'ndf') - 2 line 392: ib2b = names.index(b'ba2ba')

mousset commented 5 years ago

Thanks for this remark ! I just made the modification that you suggested.