From 2cf22ca2091e19d8b84faf8f3bf3fe1c40a44a80 Mon Sep 17 00:00:00 2001 From: Keurfon Luu Date: Mon, 6 Dec 2021 18:10:46 -0800 Subject: [PATCH] invoke format --- toughio/_mesh/_helpers.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/toughio/_mesh/_helpers.py b/toughio/_mesh/_helpers.py index c3772858..418d3ca7 100644 --- a/toughio/_mesh/_helpers.py +++ b/toughio/_mesh/_helpers.py @@ -120,7 +120,9 @@ def read(filename, file_format=None, **kwargs): if idx.sum() < len(mesh.cells): mesh.cells = [cell for keep, cell in zip(idx, mesh.cells) if keep] for k, v in cell_data.items(): - mesh.cell_data[k] = np.concatenate([vv for keep, vv in zip(idx, v) if keep]) + mesh.cell_data[k] = np.concatenate( + [vv for keep, vv in zip(idx, v) if keep] + ) mesh.prune_duplicates()