Skip to content

Commit

Permalink
Merge pull request #56 from brainglobe/atlasapi-rename
Browse files Browse the repository at this point in the history
bg-atlasapi to brainglobe-atlasapi
  • Loading branch information
alessandrofelder authored Feb 27, 2024
2 parents 07a8cf5 + b5c41e2 commit fee3b1d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
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

0 comments on commit fee3b1d

Please sign in to comment.