Skip to content

Commit

Permalink
explicitly set utf-8 as the encodin when readin the database.csv #419
Browse files Browse the repository at this point in the history
  • Loading branch information
3ll3d00d committed Jan 11, 2021
1 parent eb5ac28 commit c1adf90
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main/python/model/catalogue.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def __on_database_load(self, database):
if database is True:
db_csv = []
db_csv_dict = {}
with open(self.__db_csv_file) as f:
with open(self.__db_csv_file, encoding='utf-8') as f:
indices = {
'Title': -1,
'Format': -1,
Expand Down
3 changes: 1 addition & 2 deletions src/main/python/model/xy.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@

import numpy as np
from PyQt5.QtCore import QSettings
from scipy.interpolate import PchipInterpolator, CubicSpline
from scipy.interpolate import PchipInterpolator

from acoustics.smooth import OctaveBand
from model.preferences import DISPLAY_SMOOTH_GRAPHS, Preferences

SAVGOL_WINDOW_LENGTH = 101
Expand Down

0 comments on commit c1adf90

Please sign in to comment.