Problem 1318

Summary: pyG4VisManager c++ signature mismatch
Product: Environments Reporter: Benda Xu <heroxbd>
Component: g4pyAssignee: Koichi Murakami <Koichi.Murakami>
Status: CLOSED FIXED    
Severity: trivial    
Priority: P5    
Version: 9.5   
Hardware: All   
OS: All   
Attachments: geant-python-4.9.5-vis-fix.patch

Description Benda Xu 2012-05-21 06:41:14 CEST
Symptom is like this, and I have found a way to fix this (patch included)

import Geant4 as g4

In [1]: v = g4.G4VisManager.GetConcreteInstance()

In [2]: v.GetVerbosity()
---------------------------------------------------------------------------
ArgumentError                             Traceback (most recent call last)

/gpfshome/home/benda/art/sim/<ipython console> in <module>()

ArgumentError: Python argument types in
    G4VisManager.GetVerbosity(G4VisManager)
did not match C++ signature:
    GetVerbosity(void)

In [3]: v.SetVerboseLevel(1)
---------------------------------------------------------------------------
ArgumentError                             Traceback (most recent call last)

/gpfshome/home/benda/art/sim/<ipython console> in <module>()

ArgumentError: Python argument types in
    G4VisManager.SetVerboseLevel(G4VisManager, int)
did not match C++ signature:
    SetVerboseLevel(PyG4VisManager {lvalue}, G4VisManager::Verbosity)
    SetVerboseLevel(PyG4VisManager {lvalue}, G4String)
    SetVerboseLevel(PyG4VisManager {lvalue}, int)
Comment 1 Benda Xu 2012-05-21 06:41:49 CEST
Created attachment 165 [details]
geant-python-4.9.5-vis-fix.patch
Comment 2 Koichi Murakami 2012-07-24 01:02:07 CEST
Thanks for pointing out the issue.
They were fixed.
Just comment that gVisManager is available as the pointer to VisManager, it works fine.