diff --git a/neo/io/nixio.py b/neo/io/nixio.py index f1be5ce31..29745d41f 100644 --- a/neo/io/nixio.py +++ b/neo/io/nixio.py @@ -24,7 +24,7 @@ import time from datetime import datetime -from collections import Iterable +from collections import Iterable, OrderedDict import itertools from uuid import uuid4 @@ -1174,7 +1174,7 @@ def _group_signals(dataarrays): belong to the same Signal """ # now start grouping - groups = dict() + groups = OrderedDict() for da in dataarrays: basename = ".".join(da.name.split(".")[:-1]) if basename not in groups: diff --git a/neo/test/iotest/test_nixio.py b/neo/test/iotest/test_nixio.py index c1d1a33bc..ffd45c00c 100644 --- a/neo/test/iotest/test_nixio.py +++ b/neo/test/iotest/test_nixio.py @@ -351,7 +351,7 @@ def create_full_nix_file(cls, filename): allsignalgroups = list() # analogsignals - for n in range(3): + for n in range(5): siggroup = list() asig_name = "{}_asig{}".format(cls.rword(10), n) asig_definition = cls.rsentence(5, 5)