ibllib.tests.test_tasks

Test ibllib.pipes.tasks module and Task class.

Classes

GpuTask

SomePipeline

Task00

Task01_void

Task02_error

Task10

Task11

TaskGpuLock

TaskIncomplete

TestDynamicTask

TestExperimentDescriptionRegisterRaw

TestLocks

TestMisc

Tests for misc functions in ibllib.pipes.tasks module.

TestPipelineAlyx

TestTask

class Task00(session_path, parents=None, taskid=None, one=None, machine=None, clobber=True, location='server', scratch_folder=None, on_error='continue', **kwargs)[source]

Bases: Task

version = 'custom_job00'
class Task01_void(session_path, parents=None, taskid=None, one=None, machine=None, clobber=True, location='server', scratch_folder=None, on_error='continue', **kwargs)[source]

Bases: Task

class Task02_error(session_path, parents=None, taskid=None, one=None, machine=None, clobber=True, location='server', scratch_folder=None, on_error='continue', **kwargs)[source]

Bases: Task

run_count = 0
class Task10(session_path, parents=None, taskid=None, one=None, machine=None, clobber=True, location='server', scratch_folder=None, on_error='continue', **kwargs)[source]

Bases: Task

level = 1
class Task11(session_path, parents=None, taskid=None, one=None, machine=None, clobber=True, location='server', scratch_folder=None, on_error='continue', **kwargs)[source]

Bases: Task

level = 1
class TaskGpuLock(session_path, parents=None, taskid=None, one=None, machine=None, clobber=True, location='server', scratch_folder=None, on_error='continue', **kwargs)[source]

Bases: Task

gpu = 1
setUp()[source]

Get the data handler and ensure all data is available locally to run task.

class TaskIncomplete(session_path, parents=None, taskid=None, one=None, machine=None, clobber=True, location='server', scratch_folder=None, on_error='continue', **kwargs)[source]

Bases: Task

class SomePipeline(session_path=None, **kwargs)[source]

Bases: Pipeline

class TestPipelineAlyx(methodName='runTest')[source]

Bases: TestCase

setUp() None[source]

Hook method for setting up the test fixture before exercising it.

tearDown() None[source]

Hook method for deconstructing the test fixture after testing it.

test_pipeline_alyx(mock_ep)[source]
class GpuTask(session_path, parents=None, taskid=None, one=None, machine=None, clobber=True, location='server', scratch_folder=None, on_error='continue', **kwargs)[source]

Bases: Task

gpu = 1
class TestLocks(methodName='runTest')[source]

Bases: TestCase

test_gpu_lock_and_local_data_handler() None[source]
class TestExperimentDescriptionRegisterRaw(methodName='runTest')[source]

Bases: TestCase

setUp() None[source]

Hook method for setting up the test fixture before exercising it.

test_experiment_description_registration()[source]
class TestDynamicTask(methodName='runTest')[source]

Bases: TestCase

setUp() None[source]

Hook method for setting up the test fixture before exercising it.

test_get_device_collection()[source]

Test for DynamicTask.get_device_collection method

class TestTask(methodName='runTest')[source]

Bases: TestCase

setUp()[source]

Hook method for setting up the test fixture before exercising it.

test_input_files_to_register()[source]

Test for Task._input_files_to_register method.

class TestMisc(methodName='runTest')[source]

Bases: TestCase

Tests for misc functions in ibllib.pipes.tasks module.

test_str2class()[source]

Test ibllib.pipes.tasks.str2class function.