Yeqzids/SP

SP_WavCal.py: error loading pickle object

Yeqzids opened this issue · 1 comments

Pre = pickle.load(f)

Traceback (most recent call last):
  File "/SP/SP_WavCal.py", line 179, in <module>
    WavCal(filenames,ArcsFile,OutFile,Verbose,Method)
  File "/SP/SP_WavCal.py", line 84, in WavCal
    Pre = pickle.load(f)
TypeError: a bytes-like object is required, not 'str'

If I change the previous line from 'r' to 'rb', then

Traceback (most recent call last):
  File "/SP/SP_WavCal.py", line 179, in <module>
    WavCal(filenames,ArcsFile,OutFile,Verbose,Method)
  File "/SP/SP_WavCal.py", line 84, in WavCal
    Pre = pickle.load(f)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xa8 in position 1: ordinal not in range(128)

Fixed in 2f331c7.