• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

int-brain-lab / iblrig / 15073834064

16 May 2025 05:16PM UTC coverage: 49.414% (+2.6%) from 46.79%
15073834064

Pull #750

github

c98309
web-flow
Merge 8e475a77c into e481532ae
Pull Request #750: Online plots

538 of 720 new or added lines in 3 files covered. (74.72%)

1000 existing lines in 20 files now uncovered.

4677 of 9465 relevant lines covered (49.41%)

0.49 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

91.67
/iblrig/constants.py
1
import os
1✔
2
import sys
1✔
3
from importlib.util import find_spec
1✔
4
from pathlib import Path
1✔
5
from shutil import which
1✔
6

7
BASE_PATH = Path(__file__).parents[1]
1✔
8
BASE_DIR = str(BASE_PATH)
1✔
9
IS_GIT = Path(BASE_DIR).joinpath('.git').exists() and which('git') is not None
1✔
10
IS_VENV = sys.base_prefix != sys.prefix
1✔
11
BONSAI_EXE = BASE_PATH.joinpath('Bonsai', 'Bonsai.exe')
1✔
12
SETTINGS_PATH = BASE_PATH.joinpath('settings')
1✔
13
HARDWARE_SETTINGS_YAML = SETTINGS_PATH.joinpath('hardware_settings.yaml')
1✔
14
RIG_SETTINGS_YAML = SETTINGS_PATH.joinpath('iblrig_settings.yaml')
1✔
15
HAS_SPINNAKER = (
1✔
16
    os.name == 'nt'
17
    and (_spin_exe := which('SpinUpdateConsole_v140')) is not None
18
    and Path(_spin_exe).parents[2].joinpath('src').exists()
19
)
20
try:
1✔
21
    HAS_PYSPIN = find_spec('PySpin') is not None
1✔
UNCOV
22
except ValueError:
×
UNCOV
23
    HAS_PYSPIN = False
×
24
PYSPIN_AVAILABLE = HAS_SPINNAKER and HAS_PYSPIN
1✔
25
COPYRIGHT_YEAR = 2025
1✔
26
URL_DOC = 'https://int-brain-lab.github.io/iblrig'
1✔
27
URL_REPO = 'https://github.com/int-brain-lab/iblrig/tree/iblrigv8'
1✔
28
URL_ISSUES = 'https://github.com/int-brain-lab/iblrig/issues'
1✔
29
URL_DISCUSSION = 'https://github.com/int-brain-lab/iblrig/discussions'
1✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc