Strip blanks from keys
This commit is contained in:
parent
0cbd324904
commit
73cdaf93af
@ -15,11 +15,11 @@ def read_chirp_spikes(dataset):
|
||||
if "index" in l and "chirp" not in l:
|
||||
index = int(l.split(":")[-1])
|
||||
if "deltaf" in l and "true" not in l:
|
||||
df = l.split(":")[-1]
|
||||
df = l.split(":")[-1].strip()
|
||||
if "contrast" in l and "true" not in l:
|
||||
contrast = l.split(":")[-1]
|
||||
contrast = l.split(":")[-1].strip()
|
||||
if "chirpsize" in l:
|
||||
cs = l.split(":")[-1]
|
||||
cs = l.split(":")[-1].strip()
|
||||
if "#Key" in l:
|
||||
spikes[(index, df, contrast, cs)] = {}
|
||||
if "chirp index" in l:
|
||||
@ -45,11 +45,11 @@ def read_chirp_eod(dataset):
|
||||
if "index" in l and "chirp" not in l:
|
||||
index = int(l.split(":")[-1])
|
||||
if "deltaf" in l and "true" not in l:
|
||||
df = l.split(":")[-1]
|
||||
df = l.split(":")[-1].strip()
|
||||
if "contrast" in l and "true" not in l:
|
||||
contrast = l.split(":")[-1]
|
||||
contrast = l.split(":")[-1].strip()
|
||||
if "chirpsize" in l:
|
||||
cs = l.split(":")[-1]
|
||||
cs = l.split(":")[-1].strip()
|
||||
if "#Key" in l:
|
||||
chirp_eod[(index, df, contrast, cs)] = ([], [])
|
||||
if len(l.strip()) != 0 and "#" not in l:
|
||||
@ -73,11 +73,11 @@ def read_chirp_times(dataset):
|
||||
if "index" in l and "chirp" not in l:
|
||||
index = int(l.split(":")[-1])
|
||||
if "deltaf" in l and "true" not in l:
|
||||
df = l.split(":")[-1]
|
||||
df = l.split(":")[-1].strip()
|
||||
if "contrast" in l and "true" not in l:
|
||||
contrast = l.split(":")[-1]
|
||||
contrast = l.split(":")[-1].strip()
|
||||
if "chirpsize" in l:
|
||||
cs = l.split(":")[-1]
|
||||
cs = l.split(":")[-1].strip()
|
||||
if "#Key" in l:
|
||||
chirp_times[(index, df, contrast, cs)] = []
|
||||
if len(l.strip()) != 0 and "#" not in l:
|
||||
|
Loading…
Reference in New Issue
Block a user