Skip to content

Commit

Permalink
Merge pull request #175 from gabcavic/gabcavic
Browse files Browse the repository at this point in the history
Replace deprecated np.NaN with np.nan
  • Loading branch information
HelgeGehring authored Oct 3, 2024
2 parents 4933a1b + f3e46b7 commit b5fd13d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion femwell/visualization.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def plot_domains(mesh, ax=None):
basis0 = Basis(mesh, ElementTriP0())

subdomains = list(mesh.subdomains.keys() - {"gmsh:bounding_entities"})
subdomain_colors = basis0.zeros() * np.NaN
subdomain_colors = basis0.zeros() * np.nan
for i, subdomain in enumerate(subdomains):
subdomain_colors[basis0.get_dofs(elements=subdomain)] = i

Expand Down

0 comments on commit b5fd13d

Please sign in to comment.