Ejemplo n.º 1
0
 def test_model_appender(self):
     """`TensorMeshAppender` 2D: Data array name"""
     modname, appdata = self._write_model('testApp.mod')
     f = TensorMeshAppender()
     f.SetInputDataObject(self.GRID)
     f.add_model_file_name(modname)
     f.set_data_name('appended')
     f.Update()
     output = f.GetOutput()
     self.assertEqual(output.GetCellData().GetNumberOfArrays(), 2)
     self.assertEqual(output.GetCellData().GetArrayName(1), 'appended')
Ejemplo n.º 2
0
 def add_model_file_name(self, filename):
     """Use to set the file names for the reader. Handles single string or list of strings."""
     TensorMeshAppender.add_model_file_name(self, filename)