mirror of
https://github.com/ARM-software/devlib.git
synced 2025-02-07 05:30:44 +00: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:
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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user