Skip to content

[WIP] Enable Python shell and add a reaction for logging.

David Thompson requested to merge dcthomp/cmb:operator-log into master

Provide ModelBuilder with menu items to pop up a Python shell and start/stop logging modeling operations.

WARNING This should not be merged until

  • SMTK has the operator logging functionality merged to master and release-v1. Here is progress
  • CMB is using ParaView 1f3d2d or newer (it requires ParaView MR 249, which adds a way for CMB to override ParaView's Python-shell preamble script).

Unlike ParaView's SMTrace facility, this logs operations from the client. This has the effect of not adding log entries for server-side operators that invoke other operators during their own execution (as a few do), simplifying the script produced.

Also unlike ParaView, the log class is written in Python and so the Python shell is used to start and stop logging.

Merge request reports