40m QIL Cryo_Lab CTN SUS_Lab TCS_Lab OMC_Lab CRIME_Lab FEA ENG_Labs OptContFac Mariner WBEEShop
  40m Log  Not logged in ELOG logo
Entry  Wed May 7 16:31:12 2014, jamie, Update, CDS, cdsutils updated to version 226 
    Reply  Wed May 7 17:10:59 2014, rana, Update, CDS, cdsutils updated to version 226 
    Reply  Wed May 7 22:47:33 2014, rana, Update, CDS, cdsutils updated to version 226: not working on pianosa or rossa 
       Reply  Wed May 7 23:30:21 2014, jamie, Update, CDS, cdsutils should be working now 
          Reply  Thu May 8 01:33:21 2014, ericq, Update, CDS, python issues 
             Reply  Thu May 8 15:55:43 2014, jamie, Update, CDS, python issues 
    Reply  Wed Jun 18 13:39:01 2014, rana, Update, CDS, cdsutils reverted to version 238 
Message ID: 9931     Entry time: Thu May 8 15:55:43 2014     In reply to: 9928
Author: jamie 
Type: Update 
Category: CDS 
Subject: python issues 

Quote:

On pianosa: The ezca.Ezca class somehow initializes with its prefix set to "C1:", even though the docstring says the default is None. This makes existing scripts act wonky, because they're looking for channels like "C1:C1:FO-BLAH".

In ligo/apps/linux-x86_64, I ran ln -sfn cdsutils-old cdsutils to get the old version back for now, so I don't have to edit all of our up/down scripts.

Also, Chiara can't find the epics package when I try to load Ezca. It exists in '/usr/lib/pymodules/python2.6/epics/__init__.pyc' on pianosa, but there is no corresponding 2.7 folder on chiara.

I just pushed a fix to ezca to allow for having a truly empty prefix even if the IFO env var is set:

controls@pianosa:~ 0$ ipython
Python 2.6.5 (r265:79063, Feb 27 2014, 19:43:51) 
Type "copyright", "credits" or "license" for more information.

IPython 0.10 -- An enhanced Interactive Python.
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object'. ?object also works, ?? prints more.

In [1]: import ezca

In [2]: ezca.Ezca()
Out[2]: Ezca(prefix='C1:')

In [3]: ezca.Ezca(ifo=None)
Out[3]: Ezca(prefix='')

In [4]: ezca.Ezca(ifo=None).read('C1:LSC-DARM_GAIN')
Out[4]: 0.0

This is in cdsutils r232, which I just installed at the 40m.  I linked it in as well, so it's now the default version.  You will have to make a modification to any python scripts utilizing the Ezca object, but now it's a much smaller change (just in the invocation line):

-ca = ezca.Ezca()
+ca = ezca.Ezca(ifo=None)

 

ELOG V3.1.3-