forked from M-Labs/artiq
1
0
Fork 0

tools/get_experiment: do not autodetect experiments starting with _

This commit is contained in:
Sebastien Bourdeauducq 2015-09-01 13:21:03 -06:00
parent f602928e89
commit a059ebf36a
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ def get_experiment(module, experiment=None):
return getattr(module, experiment)
exps = [(k, v) for k, v in module.__dict__.items()
if is_experiment(v)]
if k[0] != "_" and is_experiment(v)]
if not exps:
raise ValueError("No experiments in module")
if len(exps) > 1: