Skip to content

Commit

Permalink
STYL: Fix Flake8 errors
Browse files Browse the repository at this point in the history
  • Loading branch information
JoostJM committed Apr 11, 2018
1 parent 9899db3 commit 0c80bdb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions radiomics/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,9 +256,11 @@ def getProgressReporter(*args, **kwargs):
setVerbosity(logging.WARNING)

# 2. Attempt to load and enable the C extensions.
cMatrices = None # set cMatrices to None to prevent an import error in the feature classes.
cShape = None
try:
from radiomics import _cmatrices as cMatrices
from radiomics import _cshape as cShape
from radiomics import _cmatrices as cMatrices # noqa: F401
from radiomics import _cshape as cShape # noqa: F401
except ImportError as e:
if os.path.isdir(os.path.join(os.path.dirname(__file__), '..', 'data')):
# It looks like PyRadiomics is run from source (in which case "setup.py develop" must have been run)
Expand Down
4 changes: 2 additions & 2 deletions tests/add_baseline.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
import numpy
import six

from radiomics import getFeatureClasses, generalinfo
from testUtils import RadiomicsTestUtils, PyRadiomicsBaseline
from radiomics import generalinfo, getFeatureClasses
from testUtils import PyRadiomicsBaseline, RadiomicsTestUtils


class AddBaseline:
Expand Down

0 comments on commit 0c80bdb

Please sign in to comment.