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,757
    • Issues 1,757
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 67
    • Merge Requests 67
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • ParaView
  • ParaViewParaView
  • Issues
  • #20489

Closed
Open
Opened Feb 15, 2021 by Kenneth Moreland@kmorelDeveloper

time_value not available in Python Calculator

It appears that time_value, which is supposed to resolve to the current time, is not always available in the Python Calculator. To replicate the issue, do the following:

  1. Create a Wavelet source. Apply.
  2. Create a Python Calculator. Set the expression to RTData * time_value. Apply.

You will get a Python error about the * operator not valid for float and NullType. This is because time_value is not defined.

I suspect the problem is that the Python Calculator is trying to get the time value from the input object, and the input object is not a temporal object so has no time value. But it is really useful to use the pipeline time with the Python Calculator on a non-temporal object to quickly turn it into a temporal object.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: paraview/paraview#20489