forked from M-Labs/artiq
frontend: remove lda_client (use artiq_rpctool instead)
This commit is contained in:
parent
af4be9a2e2
commit
6d4b9e5fca
|
@ -1,31 +0,0 @@
|
||||||
#!/usr/bin/env python3
|
|
||||||
|
|
||||||
import argparse
|
|
||||||
|
|
||||||
from artiq.protocols.pc_rpc import Client
|
|
||||||
|
|
||||||
|
|
||||||
def get_argparser():
|
|
||||||
parser = argparse.ArgumentParser()
|
|
||||||
parser.add_argument("-s", "--server", default="::1",
|
|
||||||
help="hostname or IP of the controller to connect to")
|
|
||||||
parser.add_argument("-p", "--port", default=3253, type=int,
|
|
||||||
help="TCP port to use to connect to the controller")
|
|
||||||
parser.add_argument("-a", "--attenuation", type=float,
|
|
||||||
help="attenuation value to set")
|
|
||||||
return parser
|
|
||||||
|
|
||||||
|
|
||||||
def main():
|
|
||||||
args = get_argparser().parse_args()
|
|
||||||
remote = Client(args.server, args.port, "lda")
|
|
||||||
try:
|
|
||||||
if args.attenuation is None:
|
|
||||||
print("Current attenuation: {}".format(remote.get_attenuation()))
|
|
||||||
else:
|
|
||||||
remote.set_attenuation(args.attenuation)
|
|
||||||
finally:
|
|
||||||
remote.close_rpc()
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
|
||||||
main()
|
|
|
@ -11,11 +11,10 @@ build:
|
||||||
string: dev
|
string: dev
|
||||||
entry_points:
|
entry_points:
|
||||||
- artiq_client = artiq.frontend.artiq_client:main
|
- artiq_client = artiq.frontend.artiq_client:main
|
||||||
- artiq_rpctool = artiq.frontend.artiq_rpctool:main
|
|
||||||
- artiq_gui = artiq.frontend.artiq_gui:main # [not win]
|
- artiq_gui = artiq.frontend.artiq_gui:main # [not win]
|
||||||
- artiq_master = artiq.frontend.artiq_master:main
|
- artiq_master = artiq.frontend.artiq_master:main
|
||||||
|
- artiq_rpctool = artiq.frontend.artiq_rpctool:main
|
||||||
- artiq_run = artiq.frontend.artiq_run:main
|
- artiq_run = artiq.frontend.artiq_run:main
|
||||||
- lda_client = artiq.frontend.lda_client:main
|
|
||||||
- lda_controller = artiq.frontend.lda_controller:main
|
- lda_controller = artiq.frontend.lda_controller:main
|
||||||
- pdq2_client = artiq.frontend.pdq2_client:main
|
- pdq2_client = artiq.frontend.pdq2_client:main
|
||||||
- pdq2_controller = artiq.frontend.pdq2_controller:main
|
- pdq2_controller = artiq.frontend.pdq2_controller:main
|
||||||
|
|
|
@ -35,11 +35,6 @@ Each driver is run in a separate "controller" that exposes a RPC interface (base
|
||||||
:ref: artiq.frontend.lda_controller.get_argparser
|
:ref: artiq.frontend.lda_controller.get_argparser
|
||||||
:prog: lda_controller
|
:prog: lda_controller
|
||||||
|
|
||||||
|
|
||||||
.. argparse::
|
|
||||||
:ref: artiq.frontend.lda_client.get_argparser
|
|
||||||
:prog: lda_client
|
|
||||||
|
|
||||||
Default TCP port list
|
Default TCP port list
|
||||||
---------------------
|
---------------------
|
||||||
|
|
||||||
|
|
3
setup.py
3
setup.py
|
@ -10,11 +10,10 @@ requirements = [
|
||||||
]
|
]
|
||||||
scripts = [
|
scripts = [
|
||||||
"artiq_client=artiq.frontend.artiq_client:main",
|
"artiq_client=artiq.frontend.artiq_client:main",
|
||||||
"artiq_rpctool=artiq.frontend.artiq_rpctool:main",
|
|
||||||
"artiq_ctlmgr=artiq.frontend.artiq_ctlmgr:main",
|
"artiq_ctlmgr=artiq.frontend.artiq_ctlmgr:main",
|
||||||
"artiq_master=artiq.frontend.artiq_master:main",
|
"artiq_master=artiq.frontend.artiq_master:main",
|
||||||
|
"artiq_rpctool=artiq.frontend.artiq_rpctool:main",
|
||||||
"artiq_run=artiq.frontend.artiq_run:main",
|
"artiq_run=artiq.frontend.artiq_run:main",
|
||||||
"lda_client=artiq.frontend.lda_client:main",
|
|
||||||
"lda_controller=artiq.frontend.lda_controller:main",
|
"lda_controller=artiq.frontend.lda_controller:main",
|
||||||
"pdq2_client=artiq.frontend.pdq2_client:main",
|
"pdq2_client=artiq.frontend.pdq2_client:main",
|
||||||
"pdq2_controller=artiq.frontend.pdq2_controller:main",
|
"pdq2_controller=artiq.frontend.pdq2_controller:main",
|
||||||
|
|
Loading…
Reference in New Issue