sardana-org / sardana

Moved to GitLab: https://gitlab.com/sardana-org/sardana
39 stars 52 forks source link

expconf working on door environment level (SF#361) #207

Open sf-migrator-bot opened 9 years ago

sf-migrator-bot commented 9 years ago

At Alba we have found a need to configure environment for the specific experiments run in parallel. This includes variables like ActiveMntGrp, ScanFile, ScanDir, etc.

While it is feasible (not very user friendly) to configure that using the senv macro, the expconf widget does not allow to set door-specific environment.

Reported by: reszelaz ( http://sf.net/u/zreszela )

Original Ticket: sardana/tickets/361

sf-migrator-bot commented 8 years ago

Original comment by: reszelaz (http://sf.net/u/zreszela)

reszelaz commented 3 years ago

Some more information from the investigation done by @jairomoldes

expconf always returns configuration from door1, even if there are more than 1 doors.

If start "expconf" in a spock that is connected to, e.g, door2, then you would expect it to show info from door2, not from door1. It looks like the problem is in line 428 of:

/homelocal/sicilia/lib/python/site-packages/sardana/taurus/qt/qtgui/extra_sardana/expdescription.py

This line does:

conf = door.getExperimentConfiguration()

Looks like even thought the door name is correct, the info retrieved by the function is always from door1.