I’m thinking about adding in a class that would take a string of Python code instead of a file with Python code in it. The advantages of the new class include:
- It gets around not being able to pass in arguments to the Python script which also allows me to use the same Python code multiple times with different arguments.
- It compiles in all of the pipeline information into the code so no need to worry about file paths during execution, installation rules, etc. for Python files that would need to be accessed during the simulation run.
- An advanced Catalyst user can probably create a string through the ParaView GUI that won’t need too much editing to get the pipeline they want.
My current use case is that I want to create a
Point Source at user specified locations (possibly many) and output simulation results in a csv file based off of those locations. So with this, the user doesn’t need to know ParaView, Python or in situ techniques at all, just the desired locations and how to deal with csv files.
Just wanted to see what the community thought about this idea?