forked from M-Labs/artiq
1
0
Fork 0

frontend: remove lda_client (use artiq_rpctool instead)

This commit is contained in:
Sebastien Bourdeauducq 2015-02-12 09:34:17 +08:00
parent af4be9a2e2
commit 6d4b9e5fca
4 changed files with 2 additions and 40 deletions

View File

@ -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()

View File

@ -11,11 +11,10 @@ build:
string: dev
entry_points:
- artiq_client = artiq.frontend.artiq_client:main
- artiq_rpctool = artiq.frontend.artiq_rpctool:main
- artiq_gui = artiq.frontend.artiq_gui:main # [not win]
- artiq_master = artiq.frontend.artiq_master:main
- artiq_rpctool = artiq.frontend.artiq_rpctool:main
- artiq_run = artiq.frontend.artiq_run:main
- lda_client = artiq.frontend.lda_client:main
- lda_controller = artiq.frontend.lda_controller:main
- pdq2_client = artiq.frontend.pdq2_client:main
- pdq2_controller = artiq.frontend.pdq2_controller:main

View File

@ -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
:prog: lda_controller
.. argparse::
:ref: artiq.frontend.lda_client.get_argparser
:prog: lda_client
Default TCP port list
---------------------

View File

@ -10,11 +10,10 @@ requirements = [
]
scripts = [
"artiq_client=artiq.frontend.artiq_client:main",
"artiq_rpctool=artiq.frontend.artiq_rpctool:main",
"artiq_ctlmgr=artiq.frontend.artiq_ctlmgr:main",
"artiq_master=artiq.frontend.artiq_master:main",
"artiq_rpctool=artiq.frontend.artiq_rpctool:main",
"artiq_run=artiq.frontend.artiq_run:main",
"lda_client=artiq.frontend.lda_client:main",
"lda_controller=artiq.frontend.lda_controller:main",
"pdq2_client=artiq.frontend.pdq2_client:main",
"pdq2_controller=artiq.frontend.pdq2_controller:main",