Problem 1318 - pyG4VisManager c++ signature mismatch
Summary: pyG4VisManager c++ signature mismatch
Status: CLOSED FIXED
Alias: None
Product: Environments
Classification: Unclassified
Component: g4py (show other problems)
Version: 9.5
Hardware: All All
: P5 trivial
Assignee: Koichi Murakami
URL:
Depends on:
Blocks:
 
Reported: 2012-05-21 06:41 CEST by Benda Xu
Modified: 2012-07-24 01:02 CEST (History)
0 users

See Also:


Attachments
geant-python-4.9.5-vis-fix.patch (1.34 KB, patch)
2012-05-21 06:41 CEST, Benda Xu
Details | Diff

Note You need to log in before you can comment on or make changes to this problem.
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.