Skip to content

Commit 892569c

Browse files
committed
new alf io structure
1 parent a22590e commit 892569c

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

atlaselectrophysiology/extract_files.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,20 +82,21 @@ def extract_rmsmap(fbin, out_folder=None, spectra=True):
8282
out_folder = Path(fbin).parent
8383
else:
8484
out_folder = Path(out_folder)
85-
alf_object_time = f'_iblqc_ephysTimeRms{sglx.type.upper()}'
86-
alf_object_freq = f'_iblqc_ephysSpectralDensity{sglx.type.upper()}'
85+
alf_object_time = f'ephysTimeRms{sglx.type.upper()}'
86+
alf_object_freq = f'ephysSpectralDensity{sglx.type.upper()}'
8787

8888
# crunch numbers
8989
rms = rmsmap(fbin, spectra=spectra)
9090
# output ALF files, single precision with the optional label as suffix before extension
9191
if not out_folder.exists():
9292
out_folder.mkdir()
9393
tdict = {'rms': rms['TRMS'].astype(np.single), 'timestamps': rms['tscale'].astype(np.single)}
94-
alfio.save_object_npy(out_folder, object=alf_object_time, dico=tdict)
94+
alfio.save_object_npy(out_folder, object=alf_object_time, dico=tdict, namespace='iblqc')
9595
if spectra:
9696
fdict = {'power': rms['spectral_density'].astype(np.single),
9797
'freqs': rms['fscale'].astype(np.single)}
98-
alfio.save_object_npy(out_folder, object=alf_object_freq, dico=fdict)
98+
alfio.save_object_npy(
99+
out_folder, object=alf_object_freq, dico=fdict, namespace='iblqc')
99100

100101

101102
def _sample2v(ap_file):

0 commit comments

Comments
 (0)