From a059ebf36a52aaf25061f062b141ba093ad35ddf Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Tue, 1 Sep 2015 13:21:03 -0600 Subject: [PATCH] tools/get_experiment: do not autodetect experiments starting with _ --- artiq/tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artiq/tools.py b/artiq/tools.py index 844cbd291..499341d04 100644 --- a/artiq/tools.py +++ b/artiq/tools.py @@ -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: