mirror of https://github.com/m-labs/artiq.git
novatech409b: cleanup
This commit is contained in:
parent
a6316c8fee
commit
5ca5a3602e
|
@ -1,5 +1,3 @@
|
||||||
#!/usr/bin/python3
|
|
||||||
|
|
||||||
# Written by Joe Britton, 2015
|
# Written by Joe Britton, 2015
|
||||||
|
|
||||||
import time
|
import time
|
||||||
|
|
|
@ -1,9 +1,8 @@
|
||||||
#!/usr/bin/python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
# Written by Joe Britton, 2015
|
# Written by Joe Britton, 2015
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
import importlib
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from artiq.devices.novatech409b.driver import Novatech409B
|
from artiq.devices.novatech409b.driver import Novatech409B
|
||||||
|
@ -16,8 +15,7 @@ logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
def get_argparser():
|
def get_argparser():
|
||||||
parser = argparse.ArgumentParser(
|
parser = argparse.ArgumentParser(
|
||||||
description="ARTIQ controller for the Novatech"
|
description="ARTIQ controller for the Novatech 409B 4-channel DDS box")
|
||||||
" 409B 4-channel DDS box")
|
|
||||||
simple_network_args(parser, 3254)
|
simple_network_args(parser, 3254)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"-d", "--device", default=None,
|
"-d", "--device", default=None,
|
||||||
|
@ -25,6 +23,7 @@ def get_argparser():
|
||||||
verbosity_args(parser)
|
verbosity_args(parser)
|
||||||
return parser
|
return parser
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
args = get_argparser().parse_args()
|
args = get_argparser().parse_args()
|
||||||
init_logger(args)
|
init_logger(args)
|
||||||
|
|
Loading…
Reference in New Issue