Skip to content

Commit 6040f00

Browse files
authored
Merge pull request #500 from int-brain-lab/NumbaNumpyVersions
Numba numpy versions
2 parents c2d156f + 0bbd380 commit 6040f00

File tree

6 files changed

+33
-22
lines changed

6 files changed

+33
-22
lines changed

brainbox/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
"""IBL shared data processing methods."""
12
import logging
23
try:
34
import one

ibllib/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
"""Library implementing the International Brain Laboratory data pipeline."""
12
__version__ = "2.13.6"
23
import warnings
34

ibllib/io/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
import spikeglx
1+
import spikeglx # TODO Remove November 2022

ibllib/qc/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"""Data quality control calculation and aggregation."""

ibllib/qc/camera.py

Lines changed: 27 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,36 @@
1-
"""Camera QC
1+
"""Video quality control.
2+
23
This module runs a list of quality control metrics on the camera and extracted video data.
34
4-
Example - Run right camera QC, downloading all but video file
5-
qc = CameraQC(eid, 'right', download_data=True, stream=True)
6-
qc.run()
5+
Examples
6+
--------
7+
Run right camera QC, downloading all but video file
8+
9+
>>> qc = CameraQC(eid, 'right', download_data=True, stream=True)
10+
>>> qc.run()
11+
12+
Run left camera QC with session path, update QC field in Alyx
13+
14+
>>> qc = CameraQC(session_path, 'left')
15+
>>> outcome, extended = qc.run(update=True) # Returns outcome of videoQC only
16+
>>> print(f'video QC = {outcome}; overall session QC = {qc.outcome}') # NB difference outcomes
17+
18+
Run only video QC (no timestamp/alignment checks) on 20 frames for the body camera
19+
20+
>>> qc = CameraQC(eid, 'body', n_samples=20)
21+
>>> qc.load_video_data() # Quicker than loading all data
22+
>>> qc.run()
723
8-
Example - Run left camera QC with session path, update QC field in Alyx
9-
qc = CameraQC(session_path, 'left')
10-
outcome, extended = qc.run(update=True) # Returns outcome of videoQC only
11-
print(f'video QC = {outcome}; overall session QC = {qc.outcome}') # NB difference outcomes
24+
Run specific video QC check and display the plots
1225
13-
Example - Run only video QC (no timestamp/alignment checks) on 20 frames for the body camera
14-
qc = CameraQC(eid, 'body', n_samples=20)
15-
qc.load_video_data() # Quicker than loading all data
16-
qc.run()
26+
>>> qc = CameraQC(eid, 'left')
27+
>>> qc.load_data(download_data=True)
28+
>>> qc.check_position(display=True) # NB: Not all checks make plots
1729
18-
Example - Run specific video QC check and display the plots
19-
qc = CameraQC(eid, 'left;)
20-
qc.load_data(download_data=True)
21-
qc.check_position(display=True) # NB: Not all checks make plots
30+
Run the QC for all cameras
2231
23-
Example - Run the QC for all cameras
24-
qcs = run_all_qc(eid)
25-
qcs['left'].metrics # Dict of checks and outcomes for left camera
32+
>>> qcs = run_all_qc(eid)
33+
>>> qcs['left'].metrics # Dict of checks and outcomes for left camera
2634
"""
2735
import logging
2836
from inspect import getmembers, isfunction

requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ jupyter>=1.0
88
jupyterlab>=1.0
99
matplotlib>=3.0.3
1010
mtscomp>=1.0.1
11-
numba
12-
numpy>=1.18,<=1.21
11+
numba>=0.56
12+
numpy>=1.18
1313
opencv-python
1414
pandas>=0.24.2
1515
phylib>=2.4

0 commit comments

Comments
 (0)