From 303b52087045c5c8ad09f9e64fbdffec65d69e5a Mon Sep 17 00:00:00 2001 From: Antony Lewis Date: Mon, 19 Apr 2021 10:05:43 +0100 Subject: [PATCH] version 1.2.0 --- getdist/__init__.py | 2 +- getdist/gui/mainwindow.py | 6 +++--- getdist/tests/test_distributions.py | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/getdist/__init__.py b/getdist/__init__.py index 23e5cd9..e9820e0 100644 --- a/getdist/__init__.py +++ b/getdist/__init__.py @@ -1,5 +1,5 @@ __author__ = 'Antony Lewis' -__version__ = "1.1.4" +__version__ = "1.2.0" __url__ = "https://getdist.readthedocs.io" from getdist.inifile import IniFile diff --git a/getdist/gui/mainwindow.py b/getdist/gui/mainwindow.py index b345f69..70576fb 100644 --- a/getdist/gui/mainwindow.py +++ b/getdist/gui/mainwindow.py @@ -14,11 +14,11 @@ try: from PySide2 import QtCore -except ImportError as e: - if 'DLL load failed' in str(e): +except ImportError as _e: + if 'DLL load failed' in str(_e): print('DLL load failed attempting to load PySide2: problem with your python configuration') else: - print(e) + print(_e) print("Can't import PySide2 modules, you need to install Pyside2") if not os.path.exists(os.path.join(sys.prefix, 'conda-meta')): print('Using Anaconda is probably the most reliable method') diff --git a/getdist/tests/test_distributions.py b/getdist/tests/test_distributions.py index ba4c392..6093ae2 100644 --- a/getdist/tests/test_distributions.py +++ b/getdist/tests/test_distributions.py @@ -215,7 +215,7 @@ def distributions(self): return self.all -def plot_compare_method(ax, prob, colors=('k'), sims=100, nsamp=default_nsamp, +def plot_compare_method(ax, prob, colors=('k',), sims=100, nsamp=default_nsamp, scalings=(0.3, 0.5, 0.7, 0.9, 1, 1.1, 1.3, 1.5, 1.7), test_settings=(None,), linestyles=('-',)): # compare Parzen estimator with higher order print(prob.label, ', size = ', nsamp)