AddTime=1 doesn't add Time column when executed using pvbatch for SaveData
When I execute python script using pvbatch from terminal to add time (as column) to my save data, Time is not added to the file. This is the code I am using :
> SaveData(File_to_Save,
proxy=slice1,
CellDataArrays=[‘IDREG’, ‘AREA_X-’, ‘AREA_X+’, ‘AREA_Y-’, ‘AREA_Y+’, ‘AREA_Z-’, ‘AREA_Z+’, ‘DENSITY’, ‘PRESSURE’, ‘TEMPERATURE’, ‘TOTAL_PRESSURE’, ‘VOLUME’, ‘TKE’, ‘YPLUS’, ‘XCEN’, ‘VELOCITY’],
Precision=8,
UseScientificNotation=1,
FieldAssociation=‘Cell Data’, # for cell data
AddMetaData=0,
AddTime=1)
However, If I execute this code from Paraview Python Shell, then it adds Time Column at the beginning. I have tried this both in Paraview 5.8.1 and Paraview 5.9.0.
To reproduce the error:
- Use the above python code from Paraview Python Shell. You will get the file with Time Column
- Use the above python code from the terminal using pvbatch, No Time Column will be written.