From b085512eb578cd8999927af506ad569dbb9668e1 Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner Date: Mon, 7 Dec 2020 18:24:51 -0600 Subject: [PATCH] Stop using pytools.{any,all} --- pytential/qbx/__init__.py | 2 -- pytential/source.py | 1 - pytential/symbolic/compiler.py | 2 +- 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/pytential/qbx/__init__.py b/pytential/qbx/__init__.py index 4e3145a7..263b2e5c 100644 --- a/pytential/qbx/__init__.py +++ b/pytential/qbx/__init__.py @@ -682,7 +682,6 @@ class QBXLayerPotentialSource(LayerPotentialSourceBase): def get_lpot_applier(self, kernels): # needs to be separate method for caching - from pytools import any if any(knl.is_complex_valued for knl in kernels): value_dtype = self.density_discr.complex_dtype else: @@ -699,7 +698,6 @@ class QBXLayerPotentialSource(LayerPotentialSourceBase): def get_lpot_applier_on_tgt_subset(self, kernels): # needs to be separate method for caching - from pytools import any if any(knl.is_complex_valued for knl in kernels): value_dtype = self.density_discr.complex_dtype else: diff --git a/pytential/source.py b/pytential/source.py index 117adc74..6d1beb8d 100644 --- a/pytential/source.py +++ b/pytential/source.py @@ -66,7 +66,6 @@ class _SumpyP2PMixin: def get_p2p(self, actx, kernels): @memoize_in(actx, (_SumpyP2PMixin, "p2p")) def p2p(kernels): - from pytools import any if any(knl.is_complex_valued for knl in kernels): value_dtype = self.complex_dtype else: diff --git a/pytential/symbolic/compiler.py b/pytential/symbolic/compiler.py index 21d6e62c..b87fd572 100644 --- a/pytential/symbolic/compiler.py +++ b/pytential/symbolic/compiler.py @@ -307,7 +307,7 @@ class Code: @memoize_method def get_next_step(self, available_names, done_insns): - from pytools import all, argmax2 + from pytools import argmax2 available_insns = [ (insn, insn.priority) for insn in self.instructions if insn not in done_insns -- GitLab