set explicit file encoding when running on linux
@@ -226,7 +226,7 @@ class SNCProfiler:
data_columns
The range of columns that the data is in. Usually, there are some columns before and after the real data.
"""
- with open(path) as f:
+ with open(path, encoding='cp437') as f:
raw_data = f.read().splitlines()
self.detectors = raw_data[detector_row].split('\t')[data_columns]
self.bias = np.array(raw_data[bias_row].split('\t')[data_columns]).astype(np.float)
