-
Notifications
You must be signed in to change notification settings - Fork 11
Description
When I try to load a file
file = SIFFile('filename.sif')
I get the following error:
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xfc in position 43: invalid start byte
Here is the full error trace:
UnicodeDecodeError Traceback (most recent call last)
in
----> 1 file = sif.SIFFile('(PhSn)4S6_1450nm_15mW.sif')
~\Anaconda3\lib\site-packages\sifreader-0.2.4-py3.6.egg\sifreader\sifreader.py in init(self, filepath)
42 def init(self, filepath):
43 self.filepath = filepath
---> 44 self._read_header(filepath)
45
46 def repr(self):
~\Anaconda3\lib\site-packages\sifreader-0.2.4-py3.6.egg\sifreader\sifreader.py in _read_header(self, filepath)
98 self.model = line.decode('utf-8')
99 elif i == 5:
--> 100 self.original_filename = line.decode('utf-8')
101 elif i == 7:
102 tokens = line.split()
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xfc in position 43: invalid start byte