ibllib.tests.fixtures.utils
Functions
create_fake_raw_ephys_data_folder creates raw_ephys_data folder can populate with empty files with expected names |
|
Touch file tree to emulate files saved by SpikeGLX |
|
- create_fake_session_folder(root_data_path, lab='fakelab', mouse='fakemouse', date='1900-01-01', num='001', increment=True)[source]
- create_fake_raw_ephys_data_folder(session_path, populate=True)[source]
create_fake_raw_ephys_data_folder creates raw_ephys_data folder can populate with empty files with expected names
- Parameters
session_path ([type]) – [description]
populate (bool, optional) – [description], defaults to True
- Returns
[description]
- Return type
[type]
- populate_raw_spikeglx(session_path, model='3B', legacy=False, user_label='my_run', n_probes=2)[source]
Touch file tree to emulate files saved by SpikeGLX
- Parameters
session_path – The raw ephys data path to place files
model – Probe model file structure (‘3A’ or ‘3B’)
legacy – If true, the emulate older SpikeGLX version where all files are saved
into a single folder :param user_label: User may input any name into SpikeGLX and filenames will include this :param n_probes: Number of probe datafiles to touch :return:
Examples
populate_raw_spikeglx(‘3A_folder’, model=’3A’, legacy=True, n_probes=1) 3A_folder
- └───raw_ephys_folder
my_run_probe00_g0_t0.imec.ap.bin my_run_probe00_g0_t0.imec.ap.meta my_run_probe00_g0_t0.imec.lf.bin my_run_probe00_g0_t0.imec.lf.meta
populate_raw_spikeglx(‘3B_folder’, model=’3B’, n_probes=3) 3B_folder
- └───my_run_g0_t0
my_run_g0_t0.imec0.ap.bin my_run_g0_t0.imec0.ap.meta my_run_g0_t0.imec0.lf.bin my_run_g0_t0.imec0.lf.meta my_run_g0_t0.imec1.ap.bin my_run_g0_t0.imec1.ap.meta my_run_g0_t0.imec1.lf.bin my_run_g0_t0.imec1.lf.meta my_run_g0_t0.imec2.ap.bin my_run_g0_t0.imec2.ap.meta my_run_g0_t0.imec2.lf.bin my_run_g0_t0.imec2.lf.meta my_run_g0_t0.nidq.bin my_run_g0_t0.nidq.meta
- create_fake_raw_behavior_data_folder(session_path, populate=True, task='ephysCW', folder='raw_behavior_data')[source]