From 0978871fc8970125800d823ac5359622c5c85e41 Mon Sep 17 00:00:00 2001 From: marcomusy Date: Fri, 1 Mar 2024 00:51:58 +0100 Subject: [PATCH] add keep_cell_types() method, small fix --- vedo/grids.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vedo/grids.py b/vedo/grids.py index 441ddbd8..9ced1140 100644 --- a/vedo/grids.py +++ b/vedo/grids.py @@ -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: