1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-01-31 10:11:17 +00:00

freqsweep: fixing additional classifiers

Properly handle the case where additional classifiers are not specified.
This commit is contained in:
Sergei Trofimov 2017-04-07 10:03:25 +01:00
parent 1019b30174
commit 6c5e52ad56

View File

@ -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)