mirror of
https://github.com/ARM-software/devlib.git
synced 2025-01-31 02:00:45 +00:00
Merge pull request #10 from Leo-Yan/use_ordered_dictionary
Instrument: Add channel with ordered sequence
This commit is contained in:
commit
217a97485b
@ -14,6 +14,7 @@
|
|||||||
#
|
#
|
||||||
import csv
|
import csv
|
||||||
import logging
|
import logging
|
||||||
|
import collections
|
||||||
|
|
||||||
from devlib.utils.types import numeric
|
from devlib.utils.types import numeric
|
||||||
|
|
||||||
@ -167,7 +168,7 @@ class Instrument(object):
|
|||||||
def __init__(self, target):
|
def __init__(self, target):
|
||||||
self.target = target
|
self.target = target
|
||||||
self.logger = logging.getLogger(self.__class__.__name__)
|
self.logger = logging.getLogger(self.__class__.__name__)
|
||||||
self.channels = {}
|
self.channels = collections.OrderedDict()
|
||||||
self.active_channels = []
|
self.active_channels = []
|
||||||
|
|
||||||
# channel management
|
# channel management
|
||||||
|
Loading…
x
Reference in New Issue
Block a user