3Controls / tangobox

Upgrade of Tango-Box virtual machine
GNU Lesser General Public License v3.0
2 stars 1 forks source link

Provide linac simulation #9

Closed piogor closed 7 years ago

piogor commented 7 years ago
piogor commented 7 years ago

Please check with Sergi if the elinac demo from old tangobox is the same as the python one: https://github.com/tango-controls/VACCA/tree/master/examples/elinac

Patfra commented 7 years ago

Sergi at https://github.com/tango-controls/VACCA/tree/master/examples/elinac writes that elinac requires Pytango and Taurus. The base image of container created by @stanislaw47 in #5 doesnt contains Taurus, but the VM eventually will contain Taurus (#14). As far as I am concerned, container with elinac will be running on VM and is supose to comunicate with it, so here is my question: Do I have to install Taurus on container?

EDIT: I tried to set up container without Taurus, but it cannot be done. This command in ipython cannot be executed without taurus:

import SimulatorDS.gen_simulation as gs

In this case I will install Taurus on the container.

Patfra commented 7 years ago

Greetings @sergirubio, We have been working on new Tangobox VM and I have a question considering elinac. Do you know if elinac demo from old tangobox VM is the same as this on your repository?

sergirubio commented 7 years ago

Hi,

It's strange that you need taurus for importing SimulatorDS ; I'll crosscheck the dependencies to correct that.

The elinac simulation provided on Vacca repository is a very simplified version of the old tangobox demo; it provides the same attributes but no commands/states behavior.

I just included it to allow to test the Vacca application in few steps without extra dependencies; it can be used as minimal test.

Sergi

Patfra commented 7 years ago

@piogor I have managed to install elinac on container. tangobox-sim ?

However, I can not open the elinac example, because of this error:

image

I installed nano and used it to change files: /home/dservers/vacca.git/vacca/panel.py and /home/dservers/vacca.git/vacca/panel.py, but still there is an error:

image

@sergirubio do you know solution to this matter? Do I have to install PyTangoArchiving?

sergirubio commented 7 years ago

Ok, it's a problem with the last version of Taurus, I'll commit a patch to vacca sources. PyTangoArchiving is optional but provides archiving plotting an attribute searches widgets to Taurus.

sergirubio commented 7 years ago

Latest sources have been pushed to master branch at github and pip

https://pypi.python.org/pypi/Vacca https://github.com/tango-controls/VACCA/archive/VACCA_4.5.6.tar.gz

sergirubio commented 7 years ago

Get also the latest fandango

https://pypi.python.org/pypi/fandango https://github.com/tango-controls/fandango/releases

sergirubio commented 7 years ago

I also uploaded latest Panic (6.3) and PyTangoArchiving (7.4) releases to pipy and github

Patfra commented 7 years ago

Thank you kindly @sergirubio :) I will download them right away. I will give you feedback after I finished configuration and testing.

Patfra commented 7 years ago

I used new version of fatango and vacca, but there was error with importing:

fandango.qt.Dropable()

in vacca/panel.py. I have checked importing files in python using ipython and discovered that to access to it I have to import not only fandango, but also fandango.qt. That fixed the error and i could run vaccagui elinac.py . I have seen that devices in DserverDS are changing state (ON, ALARM, MOVING). Should it be like this?

sergirubio commented 7 years ago

Ups, sorry for that bug. The state change at random as it is just a dummy version of JLinac simulator. If you install the Java simulators these python devices should be not needed.

Patfra commented 7 years ago

Finally @sergirubio we decided not to use SimulatorDS. However we managed to run elinac GUI from VACCA's examples.