I have a script as follows:
merge_data = MergeBlocks(nek3d) # Extract selection of data for 1.0<T<7.5 in a range #(temperature > 1.0) & (temperature < 7.5) selection=SelectPoints() selection.QueryString="(temperature >1.0) & (temperature <= 7.5)" selection.FieldType = 'POINT' selection.UpdatePipelineInformation() mySelection = ExtractSelection(Input=merge_data, Selection=selection) mySelection.UpdatePipeline() # create new programmable filters analysis = ProgrammableFilter(Input=mySelection) analysis.Script = """ import numpy as np import numpy.linalg as nl from paraview import numpy . . .
The script works fine.
analysis script is so long and I prefer to have it in the separate (python) file for readability purposes.
Is it possible to do that?
Thanks in advance