Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
ParaView
ParaView
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,729
    • Issues 1,729
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 61
    • Merge Requests 61
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • ParaView
  • ParaViewParaView
  • Issues
  • #19455

Closed
Open
Opened Nov 09, 2019 by W. Alan Scott@wascottMaintainer

Smarter Python traces

I worked with a user today trying to get scripts ready to process hundreds of large exodus runs. This was a time consuming and detailed endeavor. I would like to propose the following:

Lets add code, commented out, to all Python scripts that trivially allow the Python to be controled through parameters. In other words, something like this:

# The following code can be uncommented, and used with parameters.
# You would then use this code as follows to batch process lots of directories:
# ../pvbatch thisBatchFile directoryIn1 fileIn1 directoryOut1 fileOut1
# ../pvbatch thisBatchFile directoryIn2 fileIn2 directoryOut2 fileOut2
# ../pvbatch thisBatchFile directoryIn3 fileIn3 directoryOut3 fileOut3

# Uncomment the following lines to use parametres, and comment out the exodusReader0.
# inputDirectoryName = argument[1]
# inputFileName = argument[2]
# outputDirectoryName = argument[3]
# outputFileName = argument[4]
# exodusReader0 = ExodusReader([inputDirectoryName+inputFileName+'.e.1234.0000'])
exodusReader0 = ExodusReader('/home/alan/data/pizzaInput/myfile.e.1234.0000'])
do really important and complex stuff
# SaveScreenshot(outputDirectoryName+outputFileName+'.png')
SaveScreenshot(/home/alan/data/pizzaOutput/myfile.png')
To upload designs, you'll need to enable LFS and have admin enable hashed storage. More information
Assignee
Assign to
5.9 (Fall 2020)
Milestone
5.9 (Fall 2020) (Past due)
Assign milestone
Time tracking
None
Due date
None
Reference: paraview/paraview#19455