def RequestData(self): import os from PVGPpy.read import getTimeStepFileIndex, readPVGPGrid pdo = self.GetOutput() # This finds the index for the FileNames for the requested timestep i = getTimeStepFileIndex(self, FileNames, dt=Time_Step) path = os.path.dirname(FileNames[i]) readPVGPGrid(FileNames[i], pdo=pdo, path=path)
def RequestData(): from PVGPpy.read import madagascar, getTimeStepFileIndex # This finds the index for the FileNames for the requested timestep i = getTimeStepFileIndex(self, FileNames, dt=Time_Step) endi = ['@', '<', '>'] dtype = ['f', 'd', 'i'] # Generate Output pdo = self.GetOutput() madagascar(FileNames[i], dataNm=Data_Name, pdo=pdo, endian=endi[Endianness], dtype=dtype[DataType])
def RequestData(): from PVGPpy.read import sgemsGrid, getTimeStepFileIndex from paraview import util # This finds the index for the FileNames for the requested timestep i = getTimeStepFileIndex(self, FileNames, dt=Time_Step) # Generate Output pdo = self.GetOutput() # vtkTable sgemsGrid(FileNames[i], deli=Delimiter_Field, useTab=Use_tab_delimiter, pdo=pdo)
def RequestData(): from PVGPpy.read import delimitedText, getTimeStepFileIndex # This finds the index for the FileNames for the requested timestep i = getTimeStepFileIndex(self, FileNames, dt=Time_Step) # Generate Output pdo = self.GetOutput() delimitedText(FileNames[i], deli=Delimiter_Field, useTab=Use_Tab_Delimiter, hasTits=Has_Titles, numIgLns=Number_Ignore_Lines, pdo=pdo)
def RequestData(): import os from PVGPpy.read import gslib, getTimeStepFileIndex # This finds the index for the FileNames for the requested timestep i = getTimeStepFileIndex(self, FileNames, dt=Time_Step) # Generate Output pdo = self.GetOutput() # vtkTable tbl, h = gslib(FileNames[i], deli=Delimiter_Field, useTab=Use_Tab_Delimiter, numIgLns=Number_Ignore_Lines, pdo=pdo)
def RequestData(self): """Create a VTK output given the list of FileNames and the current timestep. This script can access self and FileNames and should return an output of type OutputDataType defined above""" from PVGPpy.read import getTimeStepFileIndex # This finds the index for the FileNames for the requested timestep i = getTimeStepFileIndex(self, FileNames, dt=Time_Step) """If you specifically do not want the ability to read time series Then delete the above code and access the file name by adding a string variable called `FileName` to the Properties dict. """ # --------------------- # # Generate Output Below if Print_File_Names: print(FileNames[i])