From b9966b95e0d682b2454d0afc4e4fe35367f218ac Mon Sep 17 00:00:00 2001 From: Martin Diehl Date: Fri, 21 Feb 2020 18:52:58 +0100 Subject: [PATCH] consistently use small letters --- python/damask/dadf5.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/python/damask/dadf5.py b/python/damask/dadf5.py index bdf6886d1..191b2203b 100644 --- a/python/damask/dadf5.py +++ b/python/damask/dadf5.py @@ -1072,7 +1072,7 @@ class DADF5(): for i in f['/geometry/T_c']: vtk_geom.InsertNextCell(vtk_type,n_nodes,i-1) - elif mode == 'Point': + elif mode.lower()=='point': Points = vtk.vtkPoints() Vertices = vtk.vtkCellArray() for c in self.cell_coordinates(): @@ -1148,7 +1148,7 @@ class DADF5(): vtk_geom.GetCellData().AddArray(vtk_data[-1]) self.set_visible('constituents',constituents_backup) - if mode=='Cell': + if mode.lower()=='cell': writer = vtk.vtkXMLRectilinearGridWriter() if self.structured else \ vtk.vtkXMLUnstructuredGridWriter() x = self.get_dataset_location('u_n') @@ -1156,7 +1156,7 @@ class DADF5(): deep=True,array_type=vtk.VTK_DOUBLE)) vtk_data[-1].SetName('u') vtk_geom.GetPointData().AddArray(vtk_data[-1]) - elif mode == 'Point': + elif mode.lower()=='point': writer = vtk.vtkXMLPolyDataWriter()