Skip to content

Commit ba84562

Browse files
authored
Bump to brainglobe-space dependency (#176)
* Add explicit dependency * Move tox.ini into pyproject as per BG standards * bg-space -> brainglobe-space
1 parent 681c436 commit ba84562

File tree

7 files changed

+34
-31
lines changed

7 files changed

+34
-31
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ The name of the resulting atlases is the string to pass with the `--atlas` flag.
8888
### Input data orientation
8989

9090
If your data does not match the BrainGlobe default orientation (the origin voxel is the most anterior, superior, left-most voxel), then you must specify the orientation by using the `--orientation` flag.
91-
What follows must be a string in the [bg-space](https://github.com/brainglobe/bg-space) "initials" form, to describe the origin voxel.
91+
What follows must be a string in the [brainglobe-space](https://github.com/brainglobe/brainglobe-space) "initials" form, to describe the origin voxel.
9292

9393
If the origin of your data (first, top left voxel) is the most anterior, superior, left part of the brain, then the orientation string would be "asl" (anterior, superior, left), and you would use:
9494

brainreg/core/backend/niftyreg/run.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import os
33
from pathlib import Path
44

5-
import bg_space as bg
5+
import brainglobe_space as bg
66
import imio
77
import numpy as np
88
from bg_atlasapi import BrainGlobeAtlas

brainreg/core/main.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import logging
22

3-
import bg_space as bg
3+
import brainglobe_space as bg
44
import imio
55
from bg_atlasapi import BrainGlobeAtlas
66
from brainglobe_utils.general.system import get_num_processes

brainreg/napari/register.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from enum import Enum
66
from typing import Dict, List, Tuple
77

8-
import bg_space as bg
8+
import brainglobe_space as bg
99
import napari
1010
import numpy as np
1111
from bg_atlasapi import BrainGlobeAtlas

brainreg/napari/util.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import logging
22
from dataclasses import dataclass
33

4-
import bg_space as bg
4+
import brainglobe_space as bg
55
import numpy as np
66
import skimage.transform
77
from bg_atlasapi import BrainGlobeAtlas

pyproject.toml

+29-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ classifiers = [
1212
"Intended Audience :: Science/Research",
1313
"Operating System :: OS Independent",
1414
"Programming Language :: Python",
15-
"Programming Language :: Python :: 3.8",
1615
"Programming Language :: Python :: 3.9",
1716
"Programming Language :: Python :: 3.10",
1817
"Programming Language :: Python :: 3.11",
@@ -21,7 +20,7 @@ classifiers = [
2120
requires-python = ">=3.9"
2221
dependencies = [
2322
"bg-atlasapi",
24-
"bg-space",
23+
"brainglobe-space>=1.0.0",
2524
"brainglobe-utils>=0.2.7",
2625
"fancylog",
2726
"imio",
@@ -95,3 +94,31 @@ line-length = 79
9594
exclude = ["__init__.py", "build", ".eggs"]
9695
select = ["I", "E", "F"]
9796
fix = true
97+
98+
[tool.tox]
99+
legacy_tox_ini = """
100+
[tox]
101+
envlist = py{38,39,310,311}
102+
isolated_build = True
103+
104+
[gh-actions]
105+
python =
106+
3.8: py38
107+
3.9: py39
108+
3.10: py310
109+
3.11: py311
110+
111+
[testenv]
112+
extras =
113+
dev
114+
napari
115+
commands =
116+
pytest -v --color=yes --cov=brainreg --cov-report=xml
117+
passenv =
118+
CI
119+
GITHUB_ACTIONS
120+
DISPLAY
121+
XAUTHORITY
122+
NUMPY_EXPERIMENTAL_ARRAY_FUNCTION
123+
PYVISTA_OFF_SCREEN
124+
"""

tox.ini

-24
This file was deleted.

0 commit comments

Comments
 (0)