Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Annotation filter with empty targdict #10

Open
mdenker opened this issue Jun 8, 2015 · 3 comments
Open

Annotation filter with empty targdict #10

mdenker opened this issue Jun 8, 2015 · 3 comments

Comments

@mdenker
Copy link
Member

mdenker commented Jun 8, 2015

If filtering a neo objects with an empty targdict, then nothing is returned. Desirable would be to return everything.

block.filter(targdict={},objects=["SpikeTrain"])

--> []
@lphan
Copy link

lphan commented Jun 18, 2015

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)

@lphan
Copy link

lphan commented Jun 18, 2015

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']

@lphan
Copy link

lphan commented Jun 19, 2015

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants