Skip to content

Commit

Permalink
For some reason 'from six.types import DictType' doesn't work (but 'f…
Browse files Browse the repository at this point in the history
…rom six import types' does).
  • Loading branch information
phantomas1234 committed Apr 7, 2015
1 parent 69189ff commit ec0f80c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cameo/flux_analysis/distance.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"""Methods for manipulating a model to compute a set of fluxes that minimize (or maximize)
different notions of distance (L1, number of binary changes etc.) to a given reference flux distribution."""

from six.types import DictType
from six import types

from cameo.core.solution import SolutionBase

Expand All @@ -38,7 +38,7 @@ class Distance(object):

@staticmethod
def __check_valid_reference(reference):
if not isinstance(reference, DictType) and not isinstance(reference, SolutionBase):
if not isinstance(reference, types.DictType) and not isinstance(reference, SolutionBase):
raise ValueError('%s is not a valid reference flux distribution. Needs to be either a dict or Solution object.')

def __init__(self, model, reference=None, *args, **kwargs):
Expand Down

0 comments on commit ec0f80c

Please sign in to comment.