1
0
mirror of https://github.com/ARM-software/devlib.git synced 2025-07-09 15:22:42 +01:00

InstrumentChannel: allow None sites

Allow site to be None (still must be explicitly specified). If the site
is None, the label if created using only the measurement type.
This commit is contained in:
Sergei Trofimov
2017-09-07 09:52:20 +01:00
parent 9192deb8ee
commit 07ba177e58

@ -188,7 +188,9 @@ class InstrumentChannel(object):
@property
def label(self):
return '{}_{}'.format(self.site, self.kind)
if self.site is not None:
return '{}_{}'.format(self.site, self.kind)
return self.kind
name = label