Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  <20192020  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  <20192020 
<== Date ==> <== Thread ==>

Subject: Re: [EXTERNAL] CSS jython setvalue behaviour
From: "Kasemir, Kay via Tech-talk" <tech-talk@aps.anl.gov>
To: Pilar Gil <pilar.gil@sevensols.com>
Cc: "tech-talk@aps.anl.gov" <tech-talk@aps.anl.gov>
Date: Thu, 12 Sep 2019 12:04:31 +0000
Hi:

> ConsoleUtil.writeInfo("type %s size %s "%(type(-2147483648), sys.maxsize)) 
> INFO: type <type 'long'> size 2147483647 

Sorry, but we couldn't care less about the python type().
What matters is the Java type that Jython passes to the setValue() Java code:

> value = -2147483648 
> print(value.__class__.__name__)

.. and the Java type of the PV data:

> print(pvs[0].getValue().__class__.__name__)

Knowing the PV type and the actual data type passed in it'd be easier to figure out how the value is handled.
For example, it's possible that Jython is passing a java.lang.Long, but the PV type maps to a VShort and the value is thus truncated. 

Thanks,
Kay

Replies:
Re: [EXTERNAL] CSS jython setvalue behaviour Pilar Gil via Tech-talk
References:
CSS jython setvalue behaviour Pilar via Tech-talk
Re: [EXTERNAL] CSS jython setvalue behaviour Kasemir, Kay via Tech-talk
Re: [EXTERNAL] CSS jython setvalue behaviour Pilar Gil via Tech-talk

Navigate by Date:
Prev: Re: [EXTERNAL] CSS jython setvalue behaviour Pilar Gil via Tech-talk
Next: Re: [EXTERNAL] CSS jython setvalue behaviour Pilar Gil via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  <20192020 
Navigate by Thread:
Prev: Re: [EXTERNAL] CSS jython setvalue behaviour Pilar Gil via Tech-talk
Next: Re: [EXTERNAL] CSS jython setvalue behaviour Pilar Gil via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  <20192020 
ANJ, 12 Sep 2019 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·