From 8a785601a6324b76214527d880218c74775e6001 Mon Sep 17 00:00:00 2001 From: Fabian Joswig Date: Tue, 31 May 2022 12:27:31 +0100 Subject: [PATCH 1/2] build: project urls added to setup.py --- setup.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/setup.py b/setup.py index 8b5dbfaf..0a648496 100644 --- a/setup.py +++ b/setup.py @@ -9,6 +9,10 @@ setup(name='pyerrors', long_description=long_description, long_description_content_type='text/markdown', url="https://github.com/fjosw/pyerrors", + project_urls= { + 'Documentation': 'https://fjosw.github.io/pyerrors/pyerrors.html', + 'Bug Tracker': 'https://github.com/fjosw/pyerrors/issues' + }, author='Fabian Joswig', author_email='fabian.joswig@ed.ac.uk', license="MIT", From ccb424a251069fa5c5b4ea36d0937f24ae4b895c Mon Sep 17 00:00:00 2001 From: Fabian Joswig Date: Tue, 31 May 2022 13:43:34 +0100 Subject: [PATCH 2/2] fix: hide_sigma in Corr.show now ignores the entry at 0 for the estimation of the plot range. --- pyerrors/correlators.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyerrors/correlators.py b/pyerrors/correlators.py index ab4f6f50..e105e98c 100644 --- a/pyerrors/correlators.py +++ b/pyerrors/correlators.py @@ -758,7 +758,7 @@ class Corr: x, y, y_err = self.plottable() if hide_sigma: - hide_from = np.argmax((hide_sigma * np.array(y_err)) > np.abs(y)) - 1 + hide_from = np.argmax((hide_sigma * np.array(y_err[1:])) > np.abs(y[1:])) - 1 else: hide_from = None ax1.errorbar(x[:hide_from], y[:hide_from], y_err[:hide_from], label=self.tag) @@ -781,7 +781,7 @@ class Corr: corr.gamma_method() x, y, y_err = corr.plottable() if hide_sigma: - hide_from = np.argmax((hide_sigma * np.array(y_err)) > np.abs(y)) - 1 + hide_from = np.argmax((hide_sigma * np.array(y_err[1:])) > np.abs(y[1:])) - 1 else: hide_from = None plt.errorbar(x[:hide_from], y[:hide_from], y_err[:hide_from], label=corr.tag, mfc=plt.rcParams['axes.facecolor'])