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

Use absolute import in align #978

Closed
sahmed95 opened this Issue Mar 19, 2016 · 2 comments

Comments

Projects
None yet
2 participants
@sahmed95
Contributor

sahmed95 commented Mar 19, 2016

Refer to #969
Change relative imports to absolute

/dipy/dipy/align/scalespace.py:
    1: from . import floating
    2  import numpy as np
    3  import numpy.linalg as npl

/dipy/dipy/align/sumsqdiff.pyx:
    4  cimport cython
    5  cimport numpy as cnp
    6: from .fused_types cimport floating, number
    7  cdef extern from "dpy_math.h" nogil:
    8      int dpy_isinf(double)

/dipy/dipy/align/tests/test_crosscorr.py:
    1  import numpy as np
    2  from numpy.testing import assert_array_almost_equal
    3: from .. import floating
    4: from .. import crosscorr as cc
    5  
    6  def test_cc_factors_2d():

/dipy/dipy/align/tests/test_expectmax.py:
    4                             assert_array_almost_equal,
    5                             assert_raises)
    6: from .. import floating
    7: from .. import expectmax as em
    8  
    9  

/dipy/dipy/align/tests/test_imwarp.py:
    7                             assert_array_almost_equal,
    8                             assert_raises)
    9: from ...data import get_data
   10: from .. import floating
   11: from .. import imwarp as imwarp
   12: from .. import metrics as metrics
   13: from .. import vector_fields as vfu
   14: from .. import VerbosityLevels
   15: from ..imwarp import DiffeomorphicMap
   16  
   17  

/dipy/dipy/align/tests/test_metrics.py:
    1  import numpy as np
    2  from scipy import ndimage
    3: from .. import floating
    4: from ..metrics import SSDMetric, CCMetric, EMMetric
    5  from numpy.testing import (assert_array_equal,
    6                             assert_array_almost_equal,

/dipy/dipy/align/tests/test_scalespace.py:
    6                             assert_equal,
    7                             assert_raises)
    8: from .. import floating
    9: from ..imwarp import get_direction_and_spacings
   10: from ..scalespace import (ScaleSpace,
   11                            IsotropicScaleSpace)
   12: from .test_imwarp import get_synthetic_warped_circle
   13  
   14  def test_scale_space():

/dipy/dipy/align/tests/test_sumsqdiff.py:
    1  import numpy as np
    2: from .. import floating
    3: from .. import sumsqdiff as ssd
    4  from numpy.testing import (assert_equal,
    5                             assert_almost_equal,

/dipy/dipy/align/tests/test_transforms.py:
    1: from ..transforms import regtransforms, Transform
    2  import numpy as np
    3  from numpy.testing import (assert_array_equal,

/dipy/dipy/align/tests/test_vector_fields.py:
    7  from scipy.ndimage.interpolation import map_coordinates
    8  from nibabel.affines import apply_affine, from_matvec
    9: from ...core import geometry
   10: from .. import floating
   11: from .. import imwarp
   12: from .. import vector_fields as vfu
   13: from ..transforms import regtransforms
   14: from ..parzenhist import sample_domain_regular
   15  
   16  
@sahmed95

This comment has been minimized.

Contributor

sahmed95 commented Mar 22, 2016

Oops. Made a mistake here. In vector_fields.pyx, the import shouldn't be changed to absolute.

@skoudoro

This comment has been minimized.

Member

skoudoro commented Jun 16, 2017

It seems to be ok, can you close this issue @sahmed95 ?

@skoudoro skoudoro closed this Jun 19, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment