Skip to content

Commit

Permalink
Refactor stitch-align code into align package
Browse files Browse the repository at this point in the history
  • Loading branch information
gmazzamuto committed Jan 25, 2021
1 parent 3f8aafb commit a0b6865
Show file tree
Hide file tree
Showing 12 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion zetastitcher/__main__.py → scripts/align_debug.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import cv2 as cv

from .io.inputfile import InputFile
from zetastitcher.io.inputfile import InputFile


def to_dtype(x, dtype):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
# pip to create the appropriate form of executable for the target platform.
entry_points={
'console_scripts': [
'stitch-align = zetastitcher.runner:main',
'stitch-align = zetastitcher.align.__main__:main',
'stitch-fuse = zetastitcher.fuse.__main__:main',
'stitch-downscale = zetastitcher.scripts.stitch_downscale:main',
],
Expand Down
2 changes: 1 addition & 1 deletion tests/test_filematrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from ddt import ddt, data

from zetastitcher.io.filematrix import parse_file_name
from zetastitcher.align.filematrix import parse_file_name


test_vectors = [
Expand Down
2 changes: 1 addition & 1 deletion zetastitcher/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from .version import __version__

from .io.inputfile import InputFile
from .io.filematrix import FileMatrix
from zetastitcher.align.filematrix import FileMatrix
from .io.virtual_fused_volume import VirtualFusedVolume
Empty file added zetastitcher/align/__init__.py
Empty file.
8 changes: 4 additions & 4 deletions zetastitcher/runner.py → zetastitcher/align/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
import numpy as np
import pandas as pd

from .io.inputfile import InputFile
from .io.filematrix import FileMatrix
from zetastitcher.io.xcorr_filematrix import XcorrFileMatrix
from zetastitcher.io.inputfile import InputFile
from zetastitcher.align.filematrix import FileMatrix
from zetastitcher.align.xcorr_filematrix import XcorrFileMatrix
from zetastitcher.fuse import absolute_positions
from zetastitcher.fuse.__main__ import ABS_MODE_MAXIMUM_SCORE
from .normxcorr import normxcorr2_cv

from .version import __version__
from zetastitcher.version import __version__


logger = logging.getLogger(__name__)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import pandas as pd
import networkx as nx

from .inputfile import InputFile
from zetastitcher.io.inputfile import InputFile

logger = logging.getLogger(__name__)
logger.addHandler(logging.NullHandler())
Expand Down
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions zetastitcher/fuse/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@

from . import absolute_positions
from .fuse_runner import FuseRunner
from ..io.filematrix import FileMatrix
from zetastitcher.io.xcorr_filematrix import XcorrFileMatrix
from zetastitcher.align.filematrix import FileMatrix
from zetastitcher.align.xcorr_filematrix import XcorrFileMatrix

logger = logging.getLogger(__name__)
coloredlogs.install(level='INFO', fmt='%(levelname)s [%(name)s]: %(message)s')
Expand Down
2 changes: 1 addition & 1 deletion zetastitcher/io/virtual_fused_volume.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

import numpy as np

from .filematrix import FileMatrix
from zetastitcher.align.filematrix import FileMatrix
from .inputfile import InputFile
from ..fuse.overlaps import Overlaps
from ..fuse.fuse import fuse_queue
Expand Down
2 changes: 1 addition & 1 deletion zetastitcher/scripts/stitch_downscale.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import numpy as np

from zetastitcher import VirtualFusedVolume, FileMatrix
from zetastitcher.io.xcorr_filematrix import XcorrFileMatrix
from zetastitcher.align.xcorr_filematrix import XcorrFileMatrix


logger = logging.getLogger(__name__)
Expand Down

0 comments on commit a0b6865

Please sign in to comment.