# Path: cameo/parallel.py
# class SequentialView(object):
#     def map(self, *args, **kwargs):
#         return list(map(*args, **kwargs))
# 
#     def apply(self, func, *args, **kwargs):
#         return func(*args, **kwargs)
# 
#     def apply_async(self, func, *args, **kwargs):
#         return func(*args, **kwargs)
# 
#     def imap(self, func, *args, **kwargs):
#         return map(func, *args, **kwargs)
# 
#     def __len__(self):
#         return 1
# 
#     def shutdown(self):
#         pass
# 
#     def __enter__(self):
#         return self
# 
#     def __exit__(self, type, value, traceback):
#         self.shutdown()
# 
# Path: cameo/util.py
# def in_ipnb():
#     """
#     Check if it is running inside an IPython Notebook (updated for new notebooks)
#     """
#     return pandas.io.formats.console.in_ipython_frontend()


from .parallel import SequentialView
from .util import in_ipnb
    from optlang import glpk_interface
    from optlang import cplex_interface
        from bokeh.plotting import output_notebook
    import bokeh
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

from __future__ import absolute_import, print_function


non_zero_flux_threshold = 1e-6
ndecimals = 6

# Determine available solver interfaces
solvers = {}

try:

    solvers['glpk'] = glpk_interface
except ImportError:
    pass
try:

    solvers['cplex'] = cplex_interface
except ImportError:

# Path: cameo/parallel.py
# class SequentialView(object):
#     def map(self, *args, **kwargs):
#         return list(map(*args, **kwargs))
# 
#     def apply(self, func, *args, **kwargs):
#         return func(*args, **kwargs)
# 
#     def apply_async(self, func, *args, **kwargs):
#         return func(*args, **kwargs)
# 
#     def imap(self, func, *args, **kwargs):
#         return map(func, *args, **kwargs)
# 
#     def __len__(self):
#         return 1
# 
#     def shutdown(self):
#         pass
# 
#     def __enter__(self):
#         return self
# 
#     def __exit__(self, type, value, traceback):
#         self.shutdown()
# 
# Path: cameo/util.py
# def in_ipnb():
#     """
#     Check if it is running inside an IPython Notebook (updated for new notebooks)
#     """
#     return pandas.io.formats.console.in_ipython_frontend()


# Path: cameo/config.py
from .parallel import SequentialView
from .util import in_ipnb
    from optlang import glpk_interface
    from optlang import cplex_interface
        from bokeh.plotting import output_notebook
    import bokeh

# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

from __future__ import absolute_import, print_function


non_zero_flux_threshold = 1e-6
ndecimals = 6

# Determine available solver interfaces
solvers = {}

try:

    solvers['glpk'] = glpk_interface
except ImportError:
    pass
try:

    solvers['cplex'] = cplex_interface
except ImportError:

    pass