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

int-brain-lab / iblrig / 10568073180

26 Aug 2024 10:13PM UTC coverage: 47.538% (+0.7%) from 46.79%
10568073180

Pull #711

github

eeff82
web-flow
Merge 599c9edfb into ad41db25f
Pull Request #711: 8.23.2

121 of 135 new or added lines in 8 files covered. (89.63%)

1025 existing lines in 22 files now uncovered.

4084 of 8591 relevant lines covered (47.54%)

0.95 hits per line

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

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

7
BASE_PATH = Path(__file__).parents[1]
2✔
8
BASE_DIR = str(BASE_PATH)
2✔
9
IS_GIT = Path(BASE_DIR).joinpath('.git').exists() and which('git') is not None
2✔
10
IS_VENV = sys.base_prefix != sys.prefix
2✔
11
BONSAI_EXE = BASE_PATH.joinpath('Bonsai', 'Bonsai.exe')
2✔
12
SETTINGS_PATH = BASE_PATH.joinpath('settings')
2✔
13
HARDWARE_SETTINGS_YAML = SETTINGS_PATH.joinpath('hardware_settings.yaml')
2✔
14
RIG_SETTINGS_YAML = SETTINGS_PATH.joinpath('iblrig_settings.yaml')
2✔
15
HAS_SPINNAKER = (
2✔
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:
2✔
21
    HAS_PYSPIN = find_spec('PySpin') is not None
2✔
UNCOV
22
except ValueError:
×
UNCOV
23
    HAS_PYSPIN = False
×
24
PYSPIN_AVAILABLE = HAS_SPINNAKER and HAS_PYSPIN
2✔
25
COPYRIGHT_YEAR = 2024
2✔
26
URL_DOC = 'https://int-brain-lab.github.io/iblrig'
2✔
27
URL_REPO = 'https://github.com/int-brain-lab/iblrig/tree/iblrigv8'
2✔
28
URL_ISSUES = 'https://github.com/int-brain-lab/iblrig/issues'
2✔
29
URL_DISCUSSION = 'https://github.com/int-brain-lab/iblrig/discussions'
2✔
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