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

Update to brainreg v1 compliance #255

Merged
merged 3 commits into from
Nov 6, 2023
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
2 changes: 1 addition & 1 deletion .github/workflows/test_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
- os: windows-latest
python-version: "3.9"
- os: ubuntu-latest
python-version: "3.8"
python-version: "3.10"
steps:
- uses: neuroinformatics-unit/actions/test@v2
with:
Expand Down
2 changes: 1 addition & 1 deletion cellfinder/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@

def main():
suppress_tf_logging(tf_suppress_log_messages)
from brainreg.main import main as register
from brainreg.core.main import main as register

Check warning on line 45 in cellfinder/main.py

View check run for this annotation

Codecov / codecov/patch

cellfinder/main.py#L45

Added line #L45 was not covered by tests

from cellfinder.tools import prep

Expand Down
4 changes: 2 additions & 2 deletions cellfinder/tools/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
check_positive_float,
check_positive_int,
)
from brainreg.cli import atlas_parse, geometry_parser, niftyreg_parse
from brainreg.cli import backend_parse as brainreg_backend_parse
from brainreg.core.cli import atlas_parse, geometry_parser, niftyreg_parse
from brainreg.core.cli import backend_parse as brainreg_backend_parse

Check warning on line 20 in cellfinder/tools/parser.py

View check run for this annotation

Codecov / codecov/patch

cellfinder/tools/parser.py#L19-L20

Added lines #L19 - L20 were not covered by tests
from cellfinder_core.download.cli import (
download_directory_parser,
model_parser,
Expand Down
2 changes: 1 addition & 1 deletion cellfinder/tools/prep.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from bg_atlasapi import BrainGlobeAtlas
from brainglobe_utils.general.exceptions import CommandLineInputError
from brainglobe_utils.general.system import ensure_directory_exists
from brainreg.paths import Paths as BrainRegPaths
from brainreg.core.paths import Paths as BrainRegPaths

Check warning on line 17 in cellfinder/tools/prep.py

View check run for this annotation

Codecov / codecov/patch

cellfinder/tools/prep.py#L17

Added line #L17 was not covered by tests
from fancylog import fancylog

import cellfinder as program_for_log
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "cellfinder"
description = "Automated 3D cell detection and registration of whole-brain images"
readme = "README.md"
license = { file = "LICENSE" }
requires-python = ">=3.8"
requires-python = ">=3.9"
authors = [
{ name = "Adam Tyson", email = "[email protected]" },
{ name = "Christian Niedworok" },
Expand All @@ -22,7 +22,7 @@ classifiers = [
"Intended Audience :: Science/Research",
]
dependencies = [
"brainreg",
"brainreg>=1.0.0",
"cellfinder-core>=0.2.4",
"configobj",
"fancylog>=0.0.7",
Expand Down
3 changes: 1 addition & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
# For more information about tox, see https://tox.readthedocs.io/en/latest/
[tox]
envlist = py{38,39,310}-{coredev}
envlist = py{39,310}-{coredev}

[gh-actions]
python =
3.8: py38
3.9: py39
3.10: py310

Expand Down