diff --git a/pytential/qbx/__init__.py b/pytential/qbx/__init__.py index 4e3145a7801853c8828b8c399b70626ba8db5ad2..263b2e5cd533755c724b5e48eaf12b73bcccc68a 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 117adc74511d02708c08637f2351e08341e066f6..6d1beb8d36c74cbd41c91a47917227b79d7024ad 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 21d6e62cf6fe1e95d3d659d26d8307113bee1ac2..b87fd5726d94a91034d7355d353119264a9aaecc 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