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 use of brainio to brainglobe-utils #288

Merged
merged 1 commit into from
May 15, 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
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,9 @@
import treelib
import urllib3
from allensdk.core.structure_tree import StructureTree
from brainio import brainio
from brainglobe_utils.IO.image.load import load_any

Check warning on line 11 in brainglobe_atlasapi/atlas_generation/atlas_scripts/humanatlas.py

View check run for this annotation

Codecov / codecov/patch

brainglobe_atlasapi/atlas_generation/atlas_scripts/humanatlas.py#L11

Added line #L11 was not covered by tests
from rich.progress import track

# import sys
# sys.path.append("./")
from brainglobe_atlasapi.atlas_generation.mesh_utils import (
Region,
create_region_mesh,
Expand Down Expand Up @@ -99,8 +97,8 @@
# ---------------- #
# GET TEMPLATE #
# ---------------- #
annotation = brainio.load_any(annotations_image) # shape (394, 466, 378)
anatomy = brainio.load_any(anatomy_image) # shape (394, 466, 378)
annotation = load_any(annotations_image) # shape (394, 466, 378)
anatomy = load_any(anatomy_image) # shape (394, 466, 378)

Check warning on line 101 in brainglobe_atlasapi/atlas_generation/atlas_scripts/humanatlas.py

View check run for this annotation

Codecov / codecov/patch

brainglobe_atlasapi/atlas_generation/atlas_scripts/humanatlas.py#L100-L101

Added lines #L100 - L101 were not covered by tests

# Remove weird artefact
annotation = annotation[:200, :, :]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
from rich.progress import track
from scipy.ndimage import zoom

# import sys
# sys.path.append("./")
from brainglobe_atlasapi import utils
from brainglobe_atlasapi.atlas_generation.mesh_utils import (
Region,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import SimpleITK as sitk
from rich.progress import track

# from allensdk.core.reference_space_cache import ReferenceSpaceCache
from brainglobe_atlasapi import utils
from brainglobe_atlasapi.atlas_generation.mesh_utils import (
Region,
Expand Down
Loading