Coverage for ibllib/pipes/__init__.py: 50%

4 statements  

« prev     ^ index     » next       coverage.py v7.3.2, created at 2023-10-11 11:13 +0100

1#!/usr/bin/env python 

2# -*- coding:utf-8 -*- 

3# @Author: Niccolò Bonacchi 

4# @Date: Friday, July 5th 2019, 11:46:37 am 

5from ibllib.io.flags import FLAG_FILE_NAMES 

6 

7 

8def assign_task(task_deck, session_path, task, **kwargs): 

9 """ 

10 

11 Parameters 

12 ---------- 

13 task_deck : 

14 session_path 

15 task 

16 kwargs 

17 

18 Returns 

19 ------- 

20 

21 """ 

22 t = task(session_path, **kwargs) 

23 task_deck[t.name] = t