Skip to content

Commit

Permalink
removed redundant warning filter #145
Browse files Browse the repository at this point in the history
  • Loading branch information
jacanchaplais committed Sep 1, 2023
1 parent 7f98ed7 commit f192911
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions graphicle/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f192911

Please sign in to comment.