Skip to content

Commit

Permalink
add keep_cell_types() method, small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
marcomusy committed Feb 29, 2024
1 parent 7a068a9 commit 0978871
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vedo/grids.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ def __str__(self):
out += "nr. of verts".ljust(14) + ": " + str(self.npoints) + "\n"
out += "nr. of cells".ljust(14) + ": " + str(self.ncells) + "\n"
ct_arr = np.unique(self.cell_types_array)
cnames = [k for k, v in cell_types.items() if v in ct_arr]
cnames = [k for k, v in vtki.cell_types.items() if v in ct_arr]
out += "cell types".ljust(14) + ": " + str(cnames) + "\n"

if self.npoints:
Expand Down

0 comments on commit 0978871

Please sign in to comment.