We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68fd0c2 commit bcb8d73Copy full SHA for bcb8d73
DeepLabStream.py
@@ -433,8 +433,12 @@ def set_up_experiment():
433
import importlib
434
from utils.configloader import EXP_NAME
435
mod = importlib.import_module('experiments.experiments')
436
- experiment_class = getattr(mod, EXP_NAME)
437
- experiment = experiment_class()
+ try:
+ experiment_class = getattr(mod, EXP_NAME)
438
+ experiment = experiment_class()
439
+ except:
440
+ raise ValueError(f'Experiment: {EXP_NAME} not in experiments.py.')
441
+
442
return experiment
443
444
def start_experiment(self):
0 commit comments