forked from M-Labs/artiq
1
0
Fork 0

novatech409b: cleanup

This commit is contained in:
Yann Sionneau 2015-03-24 18:04:33 +01:00 committed by Sebastien Bourdeauducq
parent a6316c8fee
commit 5ca5a3602e
2 changed files with 3 additions and 6 deletions

View File

@ -1,5 +1,3 @@
#!/usr/bin/python3
# Written by Joe Britton, 2015 # Written by Joe Britton, 2015
import time import time

View File

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