Skip to content

Commit

Permalink
Merge pull request #57 from hifiberry/dev
Browse files Browse the repository at this point in the history
Merge dev into master for version 0.21
  • Loading branch information
hifiberry authored Mar 2, 2023
2 parents b9605eb + b4e96d3 commit 0ee7c15
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions hifiberrydsp/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
__version__ = "0.20"
_called_from_test = False
__version__ = "0.21"
_called_from_test = False
4 changes: 2 additions & 2 deletions hifiberrydsp/parser/rew.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def readfilters(filename, fs=48000):
fc = float(parts[5])
gain = float(parts[8])
q = float(parts[11])
logging.info("Filter EQ fc=%s, q=%s, gaion=%s, fs=%s",
logging.info("Filter EQ fc=%s, q=%s, gain=%s, fs=%s",
fc, q, gain, fs)
filters.append(
Biquad.peaking_eq(fc, q, gain, fs))
Expand Down Expand Up @@ -109,7 +109,7 @@ def readfilters(filename, fs=48000):
parts[4] == "Fc" and parts[6] == "Hz":
fc = float(parts[5])
q = 0.707
logging.info("Filter NO fc=%s", fc, db)
logging.info("Filter NO fc=%s q=%s", fc, q)
filters.append(
Biquad.notch(fc, q, fs))

Expand Down
2 changes: 1 addition & 1 deletion hifiberrydsp/parser/xmlprofile.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def read_from_file(self, filename):
logging.info("reading profile %s", filename)
try:
with open(filename) as fd:
self.doc = xmltodict.parse(fd.read())
self.doc = xmltodict.parse(fd.read(), dict_constructor=OrderedDict)
except IOError:
logging.error("can't read file %s", filename)
return
Expand Down

0 comments on commit 0ee7c15

Please sign in to comment.