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:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user