[features] fixing duplicate name
This commit is contained in:
@@ -344,6 +344,9 @@ class StimulusToNix:
|
|||||||
unit=arr.unit,
|
unit=arr.unit,
|
||||||
label=arr.label,
|
label=arr.label,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
except DuplicateName:
|
||||||
|
f = self.block.data_arrays[arr.name]
|
||||||
for d in arr.dimensions:
|
for d in arr.dimensions:
|
||||||
if d.dimension_type == nixio.DimensionType.Set:
|
if d.dimension_type == nixio.DimensionType.Set:
|
||||||
f.append_set_dimension(labels=d.labels)
|
f.append_set_dimension(labels=d.labels)
|
||||||
@@ -357,8 +360,6 @@ class StimulusToNix:
|
|||||||
d.sampling_interval,
|
d.sampling_interval,
|
||||||
labels=d.labels,
|
labels=d.labels,
|
||||||
)
|
)
|
||||||
except DuplicateName:
|
|
||||||
f = self.block.data_arrays[arr.name]
|
|
||||||
|
|
||||||
mtag.create_feature(f, nixio.LinkType.Indexed)
|
mtag.create_feature(f, nixio.LinkType.Indexed)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user