Skip to content

Commit

Permalink
invoke format
Browse files Browse the repository at this point in the history
  • Loading branch information
keurfonluu committed Dec 7, 2021
1 parent ef133f6 commit 2cf22ca
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion toughio/_mesh/_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 2cf22ca

Please sign in to comment.