Closed GoogleCodeExporter closed 8 years ago
first, 'spill' isn't a channel, it's a part of the annotation, so it should be
referenced as f1.notes['spill']. but it's still a bug, as it should raise a
meaningful exception and not bail like it does. Would adding either a class
method
or attribute of spill be useful? it so I'll add it.
Original comment by Jacob.Frelinger@gmail.com
on 16 Aug 2009 at 10:30
I think we can just get it to fail nicely by catching the exception or setting
a default for the return to be None -
for example, make Annotation use defaultdict rather than dict or use
notes.get('spill',None) instead of
notes.get['spill']
Original comment by cliburn....@gmail.com
on 16 Aug 2009 at 10:34
I've added a get spill function that's just a convince for notes.text['spill'],
or
failing that, None. Also added code to raise a ValueError exception when you
pass in
a bad channel (same as numpy does).
Original comment by Jacob.Frelinger@gmail.com
on 17 Aug 2009 at 2:22
Original comment by Jacob.Frelinger@gmail.com
on 17 Aug 2009 at 2:23
Original comment by Jacob.Frelinger@gmail.com
on 30 Jun 2011 at 3:03
Original issue reported on code.google.com by
cliburn....@gmail.com
on 16 Aug 2009 at 9:45