From f192911b1a350dbee6b447458ec43e5da624541a Mon Sep 17 00:00:00 2001 From: Jacan Chaplais Date: Fri, 1 Sep 2023 14:59:46 +0100 Subject: [PATCH] removed redundant warning filter #145 --- graphicle/data.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/graphicle/data.py b/graphicle/data.py index 30f42e3..faaca6e 100644 --- a/graphicle/data.py +++ b/graphicle/data.py @@ -1551,11 +1551,9 @@ def delta_R( passing the same instance to the ``other`` parameter. """ get_rapidity = op.attrgetter("eta") - if pseudo is False: + if not pseudo: get_rapidity = op.attrgetter("rapidity") - with warnings.catch_warnings(): - warnings.simplefilter("ignore") - rap1, rap2 = get_rapidity(self), get_rapidity(other) + rap1, rap2 = get_rapidity(self), get_rapidity(other) with calculate._thread_scope(threads): if self is other: return calculate._delta_R_symmetric(rap1, self._xy_pol)