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

Cannot use Block.filter() with targdict and object options at the same time #15

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

Comments

@mdenker
Copy link
Member

mdenker commented Jun 8, 2015

No description provided.

@lphan
Copy link

lphan commented Jun 19, 2015

@mdenker : can you give an example what does not work what expected and what is the expected result ?

@lphan
Copy link

lphan commented Jun 22, 2015

The following code worked:

# return all objects AnalogSignal with parameters annotation a=5, b=6, c=7 
print "targdict={'a':5, 'b':6, 'c':7 } and objects='AnalogSignal' ", blk.filter(targdict={'a': 5, 'b':6, 'c': 7}, objects='AnalogSignal')  
# return all objects SpikeTrain with parameter annotation st=8
print "targdict={'st':8} and objects='SpikeTrain' ", blk.filter(targdict={'st': 8}, objects='SpikeTrain')  
# return all objects AnalogSignal and SpikeTrain with parameters annotation st=8, c=7
print "targdict={'st':8, 'c':7 } and objects=['AnalogSignal', 'SpikeTrain'] ", blk.filter(targdict={'st': 8, 'c': 7}, objects=['AnalogSignal', 'SpikeTrain'])  

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