@@ -854,7 +854,7 @@ def _write_analogsignal(self, anasig, nixblock, nixgroup):
854854 if anasig .array_annotations :
855855 for k , v in anasig .array_annotations .items ():
856856 p = self ._write_property (metadata , k , v )
857- p .definition = ARRAYANNOTATION
857+ p .type = ARRAYANNOTATION
858858
859859 self ._signal_map [nix_name ] = nixdas
860860
@@ -992,7 +992,7 @@ def _write_irregularlysampledsignal(self, irsig, nixblock, nixgroup):
992992 if irsig .array_annotations :
993993 for k , v in irsig .array_annotations .items ():
994994 p = self ._write_property (metadata , k , v )
995- p .definition = ARRAYANNOTATION
995+ p .type = ARRAYANNOTATION
996996
997997 self ._signal_map [nix_name ] = nixdas
998998
@@ -1047,7 +1047,7 @@ def _write_event(self, event, nixblock, nixgroup):
10471047 if event .array_annotations :
10481048 for k , v in event .array_annotations .items ():
10491049 p = self ._write_property (metadata , k , v )
1050- p .definition = ARRAYANNOTATION
1050+ p .type = ARRAYANNOTATION
10511051
10521052 nixgroup .multi_tags .append (nixmt )
10531053
@@ -1115,7 +1115,7 @@ def _write_epoch(self, epoch, nixblock, nixgroup):
11151115 if epoch .array_annotations :
11161116 for k , v in epoch .array_annotations .items ():
11171117 p = self ._write_property (metadata , k , v )
1118- p .definition = ARRAYANNOTATION
1118+ p .type = ARRAYANNOTATION
11191119
11201120 nixgroup .multi_tags .append (nixmt )
11211121
@@ -1177,7 +1177,7 @@ def _write_spiketrain(self, spiketrain, nixblock, nixgroup):
11771177 if spiketrain .array_annotations :
11781178 for k , v in spiketrain .array_annotations .items ():
11791179 p = self ._write_property (metadata , k , v )
1180- p .definition = ARRAYANNOTATION
1180+ p .type = ARRAYANNOTATION
11811181
11821182 if nixgroup :
11831183 nixgroup .multi_tags .append (nixmt )
@@ -1390,7 +1390,7 @@ def _nix_attr_to_neo(nix_obj):
13901390 if prop .definition in (DATEANNOTATION , TIMEANNOTATION ,
13911391 DATETIMEANNOTATION ):
13921392 values = dt_from_nix (values , prop .definition )
1393- if prop .definition == ARRAYANNOTATION :
1393+ if prop .type == ARRAYANNOTATION :
13941394 if 'array_annotations' in neo_attrs :
13951395 neo_attrs ['array_annotations' ][prop .name ] = values
13961396 else :
0 commit comments