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)
|