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

bg-atlasapi to brainglobe-atlasapi #56

Merged
merged 1 commit into from
Feb 27, 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
6 changes: 3 additions & 3 deletions morphapi/api/mouselight.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from collections import namedtuple

import pandas as pd
from bg_atlasapi import BrainGlobeAtlas
from brainglobe_atlasapi import BrainGlobeAtlas
from retry import retry

from morphapi.api.neuromorphorg import NeuroMorpOrgAPI
Expand Down Expand Up @@ -254,7 +254,7 @@ def fetch_atlas(atlas_name="allen_mouse_25um"):
"""Fetch a given atlas.

See here for available atlases:
https://docs.brainglobe.info/bg-atlasapi/introduction#atlases-available
https://docs.brainglobe.info/brainglobe-atlasapi/introduction#atlases-available
"""
return BrainGlobeAtlas(atlas_name)

Expand Down Expand Up @@ -408,7 +408,7 @@ def filter_neurons_metadata(
:param filter_regions: List of brain regions acronyms.
If filtering neurons, these specify
the filter criteria. (Default value = None)
:param atlas: A `bg_atlasapi.BrainGlobeAtlas` object.
:param atlas: A `brainglobe_atlasapi.BrainGlobeAtlas` object.
If not provided, load the default atlas.
"""

Expand Down
4 changes: 2 additions & 2 deletions morphapi/api/mpin_celldb.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
from pathlib import Path

import pandas as pd
from bg_atlasapi import BrainGlobeAtlas
from bg_atlasapi.utils import retrieve_over_http
from brainglobe_atlasapi import BrainGlobeAtlas
from brainglobe_atlasapi.utils import retrieve_over_http
from brainglobe_space import SpaceConvention
from rich.progress import track

Expand Down
6 changes: 4 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ requires-python = ">=3.9.0"
dynamic = ["version"]

dependencies = [
"bg_atlasapi",
"brainglobe-atlasapi >=2.0.1",
"brainglobe-space >=1.0.0",
"imagecodecs; python_version>='3.9'",
"neurom>=3,<4",
Expand Down Expand Up @@ -90,9 +90,11 @@ ignore = [
[tool.ruff]
line-length = 79
exclude = ["__init__.py", "build", ".eggs"]
select = ["I", "E", "F"]
fix = true

[tool.ruff.lint]
select = ["I", "E", "F"]

[tool.tox]
legacy_tox_ini = """
[tox]
Expand Down
Loading