From 8fe443d0681a8ec6fc603d93449beec848922610 Mon Sep 17 00:00:00 2001 From: Martin Diehl Date: Fri, 9 Oct 2015 06:26:18 +0000 Subject: [PATCH] clearer naming --- processing/pre/geom_check.py | 6 +++--- processing/pre/seeds_check.py | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/processing/pre/geom_check.py b/processing/pre/geom_check.py index 5f08c58d9..60796b0d5 100755 --- a/processing/pre/geom_check.py +++ b/processing/pre/geom_check.py @@ -88,11 +88,11 @@ for name in filenames: # --- write data ----------------------------------------------------------------------------------- if name: writer = vtk.vtkXMLRectilinearGridWriter() - (head,tail) = os.path.split(name) + (directory,filename) = os.path.split(name) writer.SetDataModeToBinary() writer.SetCompressorTypeToZLib() - writer.SetFileName(os.path.join(head,'mesh_'+os.path.splitext(tail)[0] - +'.'+writer.GetDefaultFileExtension())) + writer.SetFileName(os.path.join(directory,os.path.splitext(filename)[0] + +'.'+writer.GetDefaultFileExtension())) else: writer = vtk.vtkDataSetWriter() writer.WriteToOutputStringOn() diff --git a/processing/pre/seeds_check.py b/processing/pre/seeds_check.py index e04f8ddb1..fe5a15e29 100755 --- a/processing/pre/seeds_check.py +++ b/processing/pre/seeds_check.py @@ -107,11 +107,11 @@ for name in filenames: #--- write data ----------------------------------------------------------------------------------- if name: writer = vtk.vtkXMLRectilinearGridWriter() - (head,tail) = os.path.split(name) + (directory,filename) = os.path.split(name) writer.SetDataModeToBinary() writer.SetCompressorTypeToZLib() - writer.SetFileName(os.path.join(head,'mesh_'+os.path.splitext(tail)[0] - +'.'+writer.GetDefaultFileExtension())) + writer.SetFileName(os.path.join(directory,os.path.splitext(filename)[0] + +'.'+writer.GetDefaultFileExtension())) else: writer = vtk.vtkDataSetWriter() writer.WriteToOutputStringOn()