Skip to content

Commit

Permalink
fix flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
kinnala committed Apr 13, 2024
1 parent 33ac627 commit 35fca29
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions skfem/io/meshio.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,13 +155,14 @@ def from_meshio(m,
else:
raise NotImplementedError
for itr in range(mtmp.t.shape[0]):
ori += np.sum(normals * (mtmp.p[:, facets[0]]
- mtmp.p[:, mtmp.t[itr, t1]]),
ori += np.sum(normals
* (mtmp.p[:, facets[0]]
- mtmp.p[:, mtmp.t[itr, t1]]),
axis=0)
ori = 1 * (ori > 0)
boundaries[k] = OrientedBoundary(boundaries[k],
ori)
except:
except Exception:
logger.warning("Failure to orient a boundary.")

# MSH 2.2 tag parsing
Expand Down

0 comments on commit 35fca29

Please sign in to comment.