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

FIX: Update the import statements to use absolute import in core #992

Merged
merged 5 commits into from Mar 28, 2016
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 4 additions & 4 deletions dipy/core/gradients.py
@@ -1,6 +1,6 @@
from __future__ import division, print_function, absolute_import

from ..utils.six import string_types
from dipy.utils.six import string_types

import numpy as np
try:
Expand All @@ -9,9 +9,9 @@
from dipy.fixes.scipy import polar
from scipy.linalg import inv

from ..io import gradients as io
from .onetime import auto_attr
from .geometry import vector_norm
from dipy.io import gradients as io
from dipy.core.onetime import auto_attr
from dipy.core.geometry import vector_norm


class GradientTable(object):
Expand Down
2 changes: 1 addition & 1 deletion dipy/core/profile.py
Expand Up @@ -4,7 +4,7 @@
import os
import subprocess

from ..utils.optpkg import optional_package
from dipy.utils.optpkg import optional_package

cProfile, _, _ = optional_package('cProfile')
pstats, _, _ = optional_package('pstats',
Expand Down
2 changes: 1 addition & 1 deletion dipy/core/sphere.py
Expand Up @@ -3,7 +3,7 @@
import numpy as np
import warnings

from ..utils.six.moves import xrange
from dipy.utils.six.moves import xrange

from dipy.core.geometry import cart2sphere, sphere2cart, vector_norm
from dipy.core.onetime import auto_attr
Expand Down
2 changes: 1 addition & 1 deletion dipy/core/subdivide_octahedron.py
Expand Up @@ -10,7 +10,7 @@
produced by 2d (lon-lat) parameterization methods.

"""
from .sphere import unit_octahedron, HemiSphere
from dipy.core.sphere import unit_octahedron, HemiSphere

def create_unit_sphere( recursion_level=2 ):
""" Creates a unit sphere by subdividing a unit octahedron.
Expand Down
2 changes: 1 addition & 1 deletion dipy/core/tests/test_sphere.py
Expand Up @@ -4,7 +4,7 @@
import numpy.testing as nt
import warnings

from ...utils.six.moves import xrange
from dipy.utils.six.moves import xrange

from dipy.core.sphere import (Sphere, HemiSphere, unique_edges, unique_sets,
faces_from_sphere_vertices, HemiSphere,
Expand Down