5798262e2f9d254f37cbe762f89747b7049a8acc,measurements/crinacle/crinacle_crawler.py,CrinacleCrawler,process,#CrinacleCrawler#,107
Before Change
raise TypeError("Crinacle\"s Gras measurements are not supported yet!")
else:
// Read text file for IEM and Ears-711 headphone measurements
with open(fp, "r", encoding="utf-8") as fh:
s = fh.read()
freq = []
raw = []
for line in s.split("\n"):
if len(line) == 0 or line[0] == "*":
After Change
return file_paths
def process(self, item, file_paths, target_dir=None):
if target_dir is None:
raise TypeError(""target_dir" must be given")
avg_fr = FrequencyResponse(name=item.true_name)
avg_fr.raw = np.zeros(avg_fr.frequency.shape)
for fp in file_paths:
with open(fp, "r", encoding="utf-8") as fh:
s = fh.read()
freq = []
raw = []
for line in s.split("\n"):
if len(line) == 0 or line[0] == "*":
// Skip empty lines and comments
if "C-weighting compensation: On" in line:
print(f"C-weighted measurement: {item.false_name}")
continue
frp = line.split(", ")
if len(frp) == 1:
frp = line.split("\t")
if len(frp) == 1:
frp = line.split(" ")
if len(frp) == 2:
f, r = frp
elif len(frp) == 3:
f, r, p = frp
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances Project Name: jaakkopasanen/AutoEq
Commit Name: 5798262e2f9d254f37cbe762f89747b7049a8acc
Time: 2020-10-18
Author: jaakko.o.pasanen@gmail.com
File Name: measurements/crinacle/crinacle_crawler.py
Class Name: CrinacleCrawler
Method Name: process
Project Name: librosa/librosa
Commit Name: 122f897f82c5101b2dfa764c7736b6fd9a24c0c2
Time: 2019-12-27
Author: kogito@hotmail.fr
File Name: tests/test_features.py
Class Name:
Method Name: test_mfcc_to_mel
Project Name: chartbeat-labs/textacy
Commit Name: 12fbf10e8ac5758330b68477c72d57212e304249
Time: 2018-04-24
Author: burton@chartbeat.com
File Name: textacy/io/spacy.py
Class Name:
Method Name: write_spacy_docs