m-labs / artiq

A leading-edge control system for quantum information experiments
https://m-labs.hk/artiq
GNU Lesser General Public License v3.0
426 stars 198 forks source link

example: expand interactive #2380

Closed SimonRenblad closed 6 months ago

SimonRenblad commented 6 months ago

ARTIQ Pull Request

Description of Changes

Expands examples/no_hardware/repository/interactive.py with all value types used in arguments_demo.py.

Related Issue

Closes #2373

Type of Change

Type
:sparkles: New feature

Steps

All Pull Requests

Code Changes

Testing

Test Observation
artiq_client show interactive-args Title is shown and shows all arguments properly.
supply-interactive` with valid arguments (tested with multiple scan types) Prints all arguments as expected. Scan works as expected.
supply-interactive with incorrect number of args Experiment is not deleted. ValueError: supplied and requested keys do not match
supply-interactive with correct number of args but invalid values (tested for each type) Experiment is deleted. Various TypeError / ValueError depending on type tested.

Git Logistics

Licensing

See copyright & licensing for more info. ARTIQ files that do not contain a license header are copyrighted by M-Labs Limited and are licensed under LGPLv3+.