From 0e6389798f6586754b084783251d96b37ed46655 Mon Sep 17 00:00:00 2001 From: Edward Caunt Date: Wed, 8 Jan 2025 12:17:18 +0000 Subject: [PATCH] misc: Flake8 --- devito/mpi/distributed.py | 1 - devito/mpi/halo_scheme.py | 1 - 2 files changed, 2 deletions(-) diff --git a/devito/mpi/distributed.py b/devito/mpi/distributed.py index 1001155466..4325055247 100644 --- a/devito/mpi/distributed.py +++ b/devito/mpi/distributed.py @@ -289,7 +289,6 @@ def all_ranges(self): ret = [] for i in self.all_numb: # In cases where ranks are empty, return a range(0, 0) - # FIXME: Not sure I like this, seems hacky ret.append(EnrichedTuple(*[range(min(j), max(j) + 1) if len(j) > 0 else range(0, 0) for j in i], getters=self.dimensions)) diff --git a/devito/mpi/halo_scheme.py b/devito/mpi/halo_scheme.py index 9b13f0aefe..c96a09f380 100644 --- a/devito/mpi/halo_scheme.py +++ b/devito/mpi/halo_scheme.py @@ -12,7 +12,6 @@ from devito.symbolics.manipulation import _uxreplace_registry from devito.tools import (Reconstructable, Tag, as_tuple, filter_ordered, flatten, frozendict, is_integer, filter_sorted, EnrichedTuple) -from devito.types import Grid __all__ = ['HaloScheme', 'HaloSchemeEntry', 'HaloSchemeException', 'HaloTouch']