Skip to content
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

ZMT zurich med tech

  1. Home
  2. Sim4Life
  3. Python API
  4. How to suppress messages in the Python console?

How to suppress messages in the Python console?

Scheduled Pinned Locked Moved Python API
2 Posts 2 Posters 150 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    gbgbha
    wrote on last edited by gbgbha
    #1

    Is it possible to suppress the default messages from the built-in methods like simulation.CreateVoxels() or SurfaceFieldFluxEvaluator().Update()?

    For context: I have a python script to create voxels, run and then perform analysis on multiple simulations. The script also print to the Python console some customized messages with information relevant to my project. However, these messages are often displaced by the default messages from s4l and I need to scroll far up to look for the relevant info.

    Thanks,
    gbh

    (Edited: typo)

    1 Reply Last reply
    0
    • L Offline
      L Offline
      lauener
      wrote on last edited by
      #2

      As far as I'm aware it is not possible to suppress those messages. Maybe try writing your customized messages into a log file instead?

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Search