1
0
mirror of https://github.com/ARM-software/devlib.git synced 2025-01-31 10:10:46 +00:00

Merge pull request #10 from Leo-Yan/use_ordered_dictionary

Instrument: Add channel with ordered sequence
This commit is contained in:
setrofim 2016-01-07 10:40:58 +00:00
commit 217a97485b

View File

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