forked from M-Labs/artiq
1
0
Fork 0

kasli: s/extensions/variant/g

This commit is contained in:
Robert Jördens 2018-01-12 12:29:42 +01:00
parent 7429ee4fb6
commit ac3c3871d0
1 changed files with 6 additions and 6 deletions

View File

@ -145,7 +145,7 @@ def _dio(eem):
class Opticlock(_KasliBase):
"""
Opticlock extension configuration
Opticlock extension variant configuration
"""
def __init__(self, **kwargs):
_KasliBase.__init__(self, **kwargs)
@ -183,16 +183,16 @@ def main():
description="ARTIQ device binary builder for Kasli systems")
builder_args(parser)
soc_kasli_args(parser)
parser.add_argument("-E", "--extensions", default="opticlock",
help="extension setup: opticlock "
parser.add_argument("--variant", default="opticlock",
help="extension variant setup: opticlock "
"(default: %(default)s)")
args = parser.parse_args()
extensions = args.extensions.lower()
if extensions == "opticlock":
variant = args.variant.lower()
if variant == "opticlock":
cls = Opticlock
else:
raise SystemExit("Invalid hardware adapter string (-E/--extensions)")
raise SystemExit("Invalid hardware adapter string (--variant)")
soc = cls(**soc_kasli_argdict(args))
build_artiq_soc(soc, builder_argdict(args))