Skip to content

Commit

Permalink
refactor: black compliant
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasgrjn committed Mar 4, 2024
1 parent 17e12d1 commit b551588
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions femwell/maxwell/waveguide.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,9 +366,13 @@ def show(
**kwargs
):
if type(field) is np.ndarray:
warn("The behavior of passing an array directly to `show` "
+ "is deprecated and will be removed in the future. "
+ "Use `plot` instead.", DeprecationWarning, stacklevel=2)
warn(
"The behavior of passing an array directly to `show` "
+ "is deprecated and will be removed in the future. "
+ "Use `plot` instead.",
DeprecationWarning,
stacklevel=2,
)
self.plot(field=field, **kwargs)
plt.show()
else:
Expand Down

0 comments on commit b551588

Please sign in to comment.