kopia lustrzana https://github.com/erdewit/HiFiScan
Update io_.py
Add exception to read calibration file with 3rd data column. Phase with Dayton microphones.pull/14/head
rodzic
5260360bb7
commit
aba9c0fb1c
|
@ -96,5 +96,10 @@ def read_correction(path: str) -> Correction:
|
|||
freq, db = line.split(',' if ',' in line else None)
|
||||
corr.append((float(freq), float(db)))
|
||||
except ValueError:
|
||||
pass
|
||||
try:
|
||||
"""If there is an extra column in correction store it as phase"""
|
||||
freq, db, phase = line.split(',' if ',' in line else None)
|
||||
corr.append((float(freq), float(db)))
|
||||
except ValueError:
|
||||
pass
|
||||
return corr
|
||||
|
|
Ładowanie…
Reference in New Issue