kopia lustrzana https://github.com/erdewit/HiFiScan
Ignore extra columns in microphone calibration files, fixes #14
rodzic
5260360bb7
commit
14bf2eaf50
|
@ -93,7 +93,7 @@ def read_correction(path: str) -> Correction:
|
|||
with open(path, 'r') as f:
|
||||
for line in f.readlines():
|
||||
try:
|
||||
freq, db = line.split(',' if ',' in line else None)
|
||||
freq, db, *_ = line.split(',' if ',' in line else None)
|
||||
corr.append((float(freq), float(db)))
|
||||
except ValueError:
|
||||
pass
|
||||
|
|
Ładowanie…
Reference in New Issue