Skip to content

Conversation

marcelldls
Copy link
Contributor

Fastcs tango backend

You can run the demo by:

  • Checking out the tango branches of fastcs and the demo
  • Spinning up a tango control system
    • yum install podman-compose
    • podman-compose up from the demo directory
  • From the dev container
    • Start the tickit device via the vscode debug launch
    • Start tango device server by running test-demo from the command line

You can interact with the device in the following manners:

  • Via an interactive python terminal:
    • Run itango3 from the dev container
    • Create device proxy: dev = DeviceProxy("my/device/name")
    • then you can use auto complete on dev (e.g. dev.get_attribute_list() or dev.RampRate)
  • Via Jive GUI database administation application
    • podman pull andygotz/tango-jive:7.19
    • podman run -ti --rm -e DISPLAY=$DISPLAY -e TANGO_HOST=localhost:10000 -v /tmp/.X11-unix:/tmp/.X11-unix --security-opt label=type:container_runtime_t --net=host andygotz/tango-jive:7.19
    • You may first need to run xhost +local:podman to get a window
    • Device interaction via the built in ATKPanel GUI can then be done by right clicking on the device (via the tree) in Jive and selecting monitor device
  • Alternatively via a Taurus gui I scraped together (python taurus_gui.py from outside dev container) (Its not programmatic, I just made it out of interest to get something similar to the epics gui – the observatory science team claim Taurus and Taranta are the popular Tango gui frameworks)

@marcelldls marcelldls added bug Something isn't working and removed bug Something isn't working labels Jun 25, 2024
Copy link

codecov bot commented Jun 25, 2024

Codecov Report

Attention: Patch coverage is 60.93750% with 50 lines in your changes missing coverage. Please review.

Project coverage is 56.18%. Comparing base (e5b86c4) to head (3c2070c).

Files Patch % Lines
src/fastcs/backends/tango/dsr.py 59.66% 48 Missing ⚠️
src/fastcs/backends/tango/backend.py 71.42% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #11      +/-   ##
==========================================
+ Coverage   48.55%   56.18%   +7.63%     
==========================================
  Files          20       22       +2     
  Lines         690      817     +127     
==========================================
+ Hits          335      459     +124     
- Misses        355      358       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@marcelldls marcelldls force-pushed the tango branch 3 times, most recently from 78fd302 to 4ca0759 Compare June 26, 2024 12:59
Add tango debugging option

Add path into attribute label

Formatting

Type hinting

Process review comments

Restore devcontainer newline

Fix rebase

Fix AttrW property

Linting

Fix subcontroller path

Fix subcontroller path for cmd
@GDYendell GDYendell closed this Jul 24, 2024
@GDYendell GDYendell reopened this Jul 24, 2024
@GDYendell GDYendell merged commit 844d3df into DiamondLightSource:main Jul 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants