Skip to content

Commit

Permalink
Merge branch 'master' into licence_badge
Browse files Browse the repository at this point in the history
  • Loading branch information
willfurnass authored Apr 2, 2020
2 parents 6f99178 + 64dd803 commit 401c8d2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 18 deletions.
24 changes: 8 additions & 16 deletions mumot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,31 +15,23 @@
Renato Pagliara Vasquez
"""

# Set package version.
# NB with Python 3.8 we could use importlib.metadata (in std lib) instead.
from pkg_resources import get_distribution, DistributionNotFound
try:
__version__ = get_distribution(__name__).version
except DistributionNotFound:
# package is not installed
pass
import sys

import matplotlib
# If operating system is macOS use a non-default matplotlib backend
# otherwise rendering of images might not be correct
# (e.g. superfluous figures when sliders are moved).
# Automated testing using tox could be affected as well
# if default matplotlib backend is used
#if sys.platform == "darwin":
#matplotlib.use('TkAgg')
from matplotlib import pyplot as plt
# Guard against iopub rate limiting warnings (https://github.com/DiODeProject/MuMoT/issues/359)
from notebook.notebookapp import NotebookApp
NotebookApp.iopub_msg_rate_limit = 10000.0
from sympy.parsing.latex import parse_latex

# Set package version.
# NB with Python 3.8 we could use importlib.metadata (in std lib) instead.
from pkg_resources import get_distribution, DistributionNotFound
try:
__version__ = get_distribution(__name__).version
except DistributionNotFound:
# package is not installed
pass

# Import the functions and classes we wish to export i.e. the public API
from .models import (
MuMoTmodel,
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ setup_requres =
test =
pytest
pytest-cov
nbval
nbval >=0.9.5
nbdime
jupyter
docs =
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ passenv = DISPLAY BROWSER TOXENV CI TRAVIS TRAVIS_*
install_command = pip install {opts} {packages}
deps =
codecov>=1.4.0
coverage<5
coverage
whitelist_externals =
bash
test
Expand Down

0 comments on commit 401c8d2

Please sign in to comment.