From 6c5e52ad56db62c1317033cc320c2d784e3dadbc Mon Sep 17 00:00:00 2001 From: Sergei Trofimov Date: Fri, 7 Apr 2017 10:03:25 +0100 Subject: [PATCH] freqsweep: fixing additional classifiers Properly handle the case where additional classifiers are not specified. --- wlauto/instrumentation/freqsweep/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wlauto/instrumentation/freqsweep/__init__.py b/wlauto/instrumentation/freqsweep/__init__.py index 99564c4a..b3eb408b 100755 --- a/wlauto/instrumentation/freqsweep/__init__.py +++ b/wlauto/instrumentation/freqsweep/__init__.py @@ -147,7 +147,7 @@ class FreqSweep(Instrument): spec.id = '{}_{}_{}'.format(spec.id, sweep_spec['label'], freq) spec.classifiers['core'] = sweep_spec['cluster'] spec.classifiers['freq'] = freq - for k, v in sweep_spec['classifiers'].iteritems(): + for k, v in sweep_spec.get('classifiers', {}).iteritems(): spec.classifiers[k] = v spec.load(self.device, context.config.ext_loader) spec.workload.init_resources(context)