Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add explicit brainglobe-space dependency #320

Merged
merged 3 commits into from
Jan 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions .github/workflows/test_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,18 @@ name: tests
on:
push:
branches:
- '*'
- 'main'
tags:
- '*'
- 'v**'
pull_request:
workflow_dispatch:

concurrency:
# Cancel this workflow if it is running,
# and then changes are applied on top of the HEAD of the branch,
# triggering another run of the workflow
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
linting:
Expand Down
4 changes: 2 additions & 2 deletions examples/user_volumetric_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
from pathlib import Path
import pooch

from bg_space import AnatomicalSpace
from brainglobe_space import AnatomicalSpace
from myterial import blue_grey, orange
from rich import print
from vedo import Volume as VedoVolume
Expand Down Expand Up @@ -69,7 +69,7 @@

source_space = AnatomicalSpace(
"ira"
) # for more info: https://docs.brainglobe.info/bg-space/usage
) # for more info: https://docs.brainglobe.info/brainglobe-space/usage
target_space = scene.atlas.space
transformed_stack = source_space.map_stack_to(target_space, data)

Expand Down
69 changes: 34 additions & 35 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,31 +1,34 @@
[project]
name = "brainrender"
authors = [{name = "Federico Claudi, Adam Tyson, Luigi Petrucco", email="[email protected]"}]
authors = [
{ name = "Federico Claudi, Adam Tyson, Luigi Petrucco", email = "[email protected]" },
]
description = "Visualisation and exploration of brain atlases and other anatomical data"
readme = "README.md"
requires-python = ">=3.9.0"
dynamic = ["version"]

dependencies = [
"numpy",
"pandas",
"bg-atlasapi>=1.0.0",
"brainglobe-space>=1.0.0",
"h5py",
"vedo>=2023.5.0",
"k3d",
"imio",
"k3d",
"loguru",
"morphapi>=0.2.1",
"msgpack",
"pyyaml>=5.3",
"myterial",
"numpy",
"pandas",
"pooch",
"morphapi>=0.2.1",
"pyinspect>=0.0.8",
"pyyaml>=5.3",
"requests",
"bg-atlasapi>=1.0.0",
"tables",
"pyinspect>=0.0.8",
"myterial",
"loguru",
"vedo>=2023.5.0",
]

license = {text = "BSD-3-Clause"}
license = { text = "BSD-3-Clause" }
classifiers = [
"Development Status :: 3 - Alpha",
"Programming Language :: Python",
Expand All @@ -48,26 +51,22 @@ Documentation = "https://brainglobe.info/documentation/brainrender/index.html"

[project.optional-dependencies]
dev = [
"pytest",
"pytest-cov",
"coverage",
"tox",
"black",
"mypy",
"pre-commit",
"ruff",
"setuptools_scm",
"imio",
"pytest",
"pytest-cov",
"coverage",
"tox",
"black",
"mypy",
"pre-commit",
"ruff",
"setuptools_scm",
"imio",
]
nb = ["jupyter", "k3d"]


[build-system]
requires = [
"setuptools>=45",
"wheel",
"setuptools_scm[toml]>=6.2",
]
requires = ["setuptools>=45", "wheel", "setuptools_scm[toml]>=6.2"]
build-backend = "setuptools.build_meta"

[tool.setuptools]
Expand All @@ -94,19 +93,19 @@ line-length = 79

[tool.check-manifest]
ignore = [
".yaml",
"tox.ini",
"tests/",
"tests/test_unit/",
"tests/test_integration/",
"docs/",
"docs/source/",
".yaml",
"tox.ini",
"tests/",
"tests/test_unit/",
"tests/test_integration/",
"docs/",
"docs/source/",
]

# should revisit some of these.
[tool.ruff]
line-length = 79
exclude = ["__init__.py","build",".eggs","examples"]
exclude = ["__init__.py", "build", ".eggs", "examples"]
select = ["I", "E", "F"]
fix = true
ignore = ["E501", "E402"]
Expand Down
2 changes: 1 addition & 1 deletion tests/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import numpy as np
import pooch
import pytest
from bg_space import AnatomicalSpace
from brainglobe_space import AnatomicalSpace
from vedo import Volume as VedoVolume

from brainrender import Animation, Scene, VideoMaker
Expand Down