Are you sure you're running the code you think you're running ? Your description sounds like an old version of something may be picked up instead.
Andi.. > On Apr 5, 2019, at 15:04, Petrus Hyvönen <petrus.hyvo...@gmail.com> wrote: > > Hi, > > I am having some confusing time with a wrapped class. > > The class "Transform" has a function transformPVCoordinates() that has > different options for input parameters. One of these are > TimeStampedPVCoordinates. It is supposed to return a > TimeStampedPVCoordinates object but returns instead a PVCoodinates object > that is its parent class. I cannot cast this to TimeStampedPVCoordinates, > gets an error. On most systems. On python 2.7 it works and only 3.6 under > linux (testing for max, linux and win). It worked also in Python 3.7 on > mac/windows for the JCC 3.0 version. > > I've checked the code being generated, and the return type and parameter > type of TimeStampedPVCoord are there, both in c code and .h file. > > How/where is the matching of parameters from python call done? I get a > feeling that the parent class is somehow used, but not shure how to > troubleshoot this... > > Best Regards > /Petrus > > > -- > _____________________________________________ > Petrus Hyvönen, Uppsala, Sweden > Mobile Phone/SMS:+46 73 803 19 00