Open mdenker opened 9 years ago
Some first results for function filter: Following code worked, return list of all AnalogSignal found in Block:
print "targdict={} and objects='AnalogSignal' ", blk.filter(targdict={}, objects='ANALOGSignal')
print "targdict={} and objects=AnalogSignal ", blk.filter(targdict={}, objects=AnalogSignal)
print "targdict={} and objects=['AnalogSignal'] ", blk.filter(targdict={}, objects=['AnalogSignal'])
print "targdict={} and objects=['AnalogSignal'] ", blk.filter(targdict={}, objects=['AnalogSiGNal'])
also worked. I will try next step with objects is a list ex. objects=['AnalogSignal', 'SpikeTrains']
Some new results like following also worked now:
print "targdict={} and objects=['SPikETRAin', 'AnalogSIGNAl', 'BLOCK'] ", blk.filter(targdict={}, objects=["SPikETRAin", "AnalogSIGNAL", "BLOCK"])
return a list of all targeted (searched) objects
If filtering a neo objects with an empty targdict, then nothing is returned. Desirable would be to return everything.