Skip to content

Commit

Permalink
Fix test imports
Browse files Browse the repository at this point in the history
  • Loading branch information
willGraham01 committed Nov 6, 2023
1 parent 2148f13 commit c904166
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 9 deletions.
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import pytest
from bg_atlasapi import BrainGlobeAtlas

from brainreg_segment.segment import SegmentationWidget
from brainglobe_segmentation.segment import SegmentationWidget

atlas_name = "allen_mouse_50um"
brainreg_dir = Path.cwd() / "tests" / "data" / "brainreg_output"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import numpy as np
import pandas as pd

from brainreg_segment.tracks.analysis import run_track_analysis
from brainglobe_segmentation.tracks.analysis import run_track_analysis

tracks_dir = Path.cwd() / "tests" / "data" / "tracks"

Expand Down
2 changes: 1 addition & 1 deletion tests/tests/test_unit/test_atlas/test_atlas_utils.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import numpy as np

from brainreg_segment.atlas import utils as atlas_utils
from brainglobe_segmentation.atlas import utils as atlas_utils

atlas_name = "allen_mouse_50um"

Expand Down
2 changes: 1 addition & 1 deletion tests/tests/test_unit/test_image/test_image_utils.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import numpy as np

from brainreg_segment.image.utils import create_KDTree_from_image
from brainglobe_segmentation.image.utils import create_KDTree_from_image

image = np.array(
(
Expand Down
2 changes: 1 addition & 1 deletion tests/tests/test_unit/test_regions/test_region_IO.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import tifffile

from brainreg_segment.regions import IO as region_IO
from brainglobe_segmentation.regions import IO as region_IO

regions_dir = Path.cwd() / "tests" / "data" / "regions"
VOXEL_SIZE = 100
Expand Down
2 changes: 1 addition & 1 deletion tests/tests/test_unit/test_regions/test_region_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import tifffile
from napari.layers import Labels

from brainreg_segment.regions.analysis import (
from brainglobe_segmentation.regions.analysis import (
check_list_only_nones,
summarise_brain_regions,
summarise_single_brain_region,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import numpy as np
from napari.layers import Labels

from brainreg_segment.segmentation_panels.regions import (
from brainglobe_segmentation.segmentation_panels.regions import (
check_segmentation_in_correct_space,
)

Expand Down
2 changes: 1 addition & 1 deletion tests/tests/test_unit/test_tracks/test_track_IO.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import numpy as np
import pandas as pd

from brainreg_segment.tracks import IO
from brainglobe_segmentation.tracks import IO

tracks_dir = Path.cwd() / "tests" / "data" / "tracks"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
import pytest
from pandas import read_csv

from brainreg_segment.tracks.analysis import analyse_track_anatomy, spline_fit
from brainglobe_segmentation.tracks.analysis import (
analyse_track_anatomy,
spline_fit,
)


@pytest.fixture
Expand Down

0 comments on commit c904166

Please sign in to comment.