Skip to content

Commit 17d55eb

Browse files
committed
2 parents bf2773e + 1d5f0d3 commit 17d55eb

10 files changed

+14
-50
lines changed

projects/_template.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@ class TemplateBpodTrialsExtractor(BaseBpodTrialsExtractor):
4141
:class:`ibllib.io.extractors.mesoscope.TimelineTrials` for examples).
4242
4343
To associate this extractor to your task protocol, you must add it to the
44-
`projects/task_extractor_map.json` file. Additionally you can associate `Alyx procedures`_ (e.g.
45-
'Optical stimulation') to the protocol with the `projects/task_type_procedures.json` file.
44+
`projects/task_extractor_map.json` file.
4645
4746
.. _Alyx procedures: https://openalyx.internationalbrainlab.org/admin/actions/proceduretype/
4847

projects/base.py

Lines changed: 0 additions & 27 deletions
This file was deleted.

projects/ephys_passive_opto.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
import one.alf.io as alfio
66
from ibllib.io.extractors import ephys_fpga
7-
from neurodsp.utils import sync_timestamps
7+
from ibldsp.utils import sync_timestamps
88
from ibllib.plots import squares, vertical_lines
99
from ibllib.pipes import tasks
1010

projects/extractor_types.json

Lines changed: 0 additions & 6 deletions
This file was deleted.

projects/krasniak_widefield.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import numpy as np
66
import ibllib.exceptions as err
77
from ibllib.pipes.base_tasks import WidefieldTask
8-
import neurodsp as dsp
8+
import ibldsp as dsp
99
import logging
1010
from one.api import ONE
1111
from ibllib.io.extractors.camera import get_video_length

projects/task_type_procedures.json

Lines changed: 0 additions & 4 deletions
This file was deleted.

projects/tests/test_biased_fibrephotometry.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1+
import unittest
12
import shutil
23

34
import numpy as np
4-
import ibllib.pipes.training_preprocessing as tpp
55
from projects import biased_fibrephotometry
66
import one.alf.io as alfio
77
from one.api import ONE
@@ -10,6 +10,7 @@
1010
from ci.tests import base
1111

1212

13+
@unittest.skip('old pipeline no longer supported')
1314
class TestBiasedPhotometry(base.IntegrationTest):
1415

1516
def setUp(self) -> None:
@@ -32,6 +33,7 @@ def setUp(self) -> None:
3233
# link.symlink_to(ff)
3334

3435
def test_extraction(self):
36+
import ibllib.pipes.training_preprocessing as tpp
3537

3638
# Extract the trials (required for photometry extraction)
3739
self.assertEqual(

projects/tests/test_ephys_passive_opto.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import unittest
12
import shutil
23

34
import numpy as np
@@ -6,9 +7,8 @@
67
from one.api import ONE
78
from ci.tests import base
89

9-
from projects.ephys_passive_opto import EphysPassiveOptoTrials
10-
1110

11+
@unittest.skip('old pipeline no longer supported')
1212
class TestEphysPassiveOptoTrials(base.IntegrationTest):
1313

1414
def setUp(self) -> None:
@@ -21,6 +21,7 @@ def test_ephys_passive_opto(self):
2121
:return:
2222
"""
2323
session_path = self.session_path
24+
from projects.ephys_passive_opto import EphysPassiveOptoTrials
2425
task = EphysPassiveOptoTrials(session_path=session_path, one=self.one_offline)
2526
task.run()
2627

projects/tests/test_ephys_training_bandit.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,8 @@
55
from ci.tests import base
66
import unittest
77

8-
from projects.training_bandit import extract_all as training_extract_all
9-
from projects.ephys_bandit import extract_all as ephys_extract_all
10-
118

9+
@unittest.skip('old pipeline no longer supported')
1210
class TestTrainingBanditTrials(base.IntegrationTest):
1311

1412
def setUp(self) -> None:
@@ -21,7 +19,7 @@ def test_training_bandit(self):
2119
Alejandro training bandit task
2220
:return:
2321
"""
24-
22+
from projects.training_bandit import extract_all as training_extract_all
2523
trials, _, _ = training_extract_all(self.session_path, save=False)
2624
trials_orig = alfio.load_object(self.session_path.joinpath('alf'), object='trials')
2725

@@ -32,6 +30,7 @@ def test_training_bandit(self):
3230
assert np.array_equal(trials['table']['contrastRight'], trials_orig['contrastRight'])
3331

3432

33+
@unittest.skip('old pipeline no longer supported')
3534
class TestEphysBanditTrials(base.IntegrationTest):
3635

3736
@unittest.skip("Skip FTP upload test")
@@ -44,7 +43,7 @@ def test_ephys_bandit(self):
4443
Alejandro ephys bandit task
4544
:return:
4645
"""
47-
46+
from projects.ephys_bandit import extract_all as ephys_extract_all
4847
trials, _ = ephys_extract_all(self.session_path, save=False)
4948
trials_orig = alfio.load_object(self.session_path.joinpath('alf'), object='trials')
5049

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "project_extraction"
7-
version = "0.2.7"
7+
version = "0.3.0"
88
description = "Custom extractors for satellite tasks"
99
dynamic = [ "readme" ]
1010
keywords = [ "IBL", "neuro-science" ]

0 commit comments

Comments
 (0)