-
|
Hi all, I'm new here, I'm an OSS developer that recently became interested in RF and hardware, and I have started to experiment a bit with openEMS. Pretty cool tool! Thanks for creating it, and thanks for offering it as OSS! Awesome=) Currently, I am piecing together my geometries for a PCB antenna, and I'm running into a bunch of newbie questions .. which I am hoping for tips/hints on this forum ;) I'm gonna post/ask in pieces, this is the first one. One small but ultra annoying issue for me is: I am drowned in VTK originating warnings which I don't care about, but which make it increasingly time consuming scrolling around to find my own log messages. Here is what I mean: (cpy311_7) oberstet@intel-nuci7:~/scm/typedefint/picoguard/pcb/subghz-dual-antenna/ems-model$ python subghz_dual_planar_helical_antenna.py
Antenna base frequency (Hz): 223000000.0
Antenna base frequency wavelength (mm): 1344
Add segment with angle 135°
Add segment with angle 135°
Add segment with angle 135°
Add segment with angle 135°
Add segment with angle 135°
Add segment with angle 135°
Add segment with angle 135°
Add segment with angle 135°
Add segment with angle 135°
Add segment with angle 135°
Add segment with angle 135°
Add segment with angle 135°
Add segment with angle 135°
Add segment with angle 135°
Add segment with angle 135°
Add segment with angle 135°
Add segment with angle 135°
Add segment with angle 135°
Opening simulation at /tmp/subghz_dual_planar_helical_antenna/subghz_dual_planar_helical_antenna.xml in AppCSXCAD
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
2023-11-10 06:33:39.188 ( 0.319s) [ FF1B6A40]vtkOpenGLPolyDataMapper:306 WARN| vtkOpenGLPolyDataMapper::GetVertexShaderCode was deprecated for VTK 9.0 and will be removed in a future version. Use vtkOpenGLShaderProperty::GetVertexShaderCode instead.
2023-11-10 06:33:39.188 ( 0.319s) [ FF1B6A40]vtkOpenGLPolyDataMapper:298 WARN| vtkOpenGLPolyDataMapper::SetVertexShaderCode was deprecated for VTK 9.0 and will be removed in a future version. Use vtkOpenGLShaderProperty::SetVertexShaderCode instead.
2023-11-10 06:33:39.188 ( 0.319s) [ FF1B6A40]vtkOpenGLPolyDataMapper:336 WARN| vtkOpenGLPolyDataMapper::GetGeometryShaderCode was deprecated for VTK 9.0 and will be removed in a future version. Use vtkOpenGLShaderProperty::GetGeometryShaderCode instead.
2023-11-10 06:33:39.188 ( 0.319s) [ FF1B6A40]vtkOpenGLPolyDataMapper:328 WARN| vtkOpenGLPolyDataMapper::SetGeometryShaderCode
...And this goes on over hundreds of lines of log noise. Even when using the following code at the very top of my openEMS Python script I can't turn it off: # approach 1: doesn't work
from vtkmodules.vtkCommonCore import vtkLogger
vtkLogger.SetStderrVerbosity(vtkLogger.VERBOSITY_OFF)
# approach 2: doesn't work
from vtkmodules.vtkCommonCore import vtkObject
vtkObject.GlobalWarningDisplayOff()
# approach 3: doesn't work
import warnings
warnings.filterwarnings('ignore')How do I disable it completely? I don't want to see any warnings from VTK - I don't care! Thanks so much! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
alright, the log noise got sufficiently on my nerves for me to dig down and figure it out:
the result looks like (note the line "vtk -- Version: 9.3.0"): building VTK from sources has been done like described in their docs, but two important things to note rgd VTK
here is how to build one of the openEMS pieces: to recap, the problem was the following noise: and here is the same without the issue: |
Beta Was this translation helpful? Give feedback.
-
|
Both vtk7 and vtk9 are available on Ubuntu 22.04 repo. You can try removing vtk9 and libvtk9* with apt, then installing "libvtk7-dev libvtk7-qt-dev vtk7" and recompiling openEMS. Hopefully you don't have any software depending on vtk9 while removing it. |
Beta Was this translation helpful? Give feedback.
alright, the log noise got sufficiently on my nerves for me to dig down and figure it out:
the result looks like (note the line "vtk -- Version: 9.3.0"):