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

Filtering does not recognize quantities #7

Open
mdenker opened this issue Jun 8, 2015 · 1 comment
Open

Filtering does not recognize quantities #7

mdenker opened this issue Jun 8, 2015 · 1 comment

Comments

@mdenker
Copy link
Member

mdenker commented Jun 8, 2015

In this example, t_start is filtered to be 0, but the t_start is actually 0 seconds. Thus, the unit is ignored. Is this behavior desireable (i.e., if not unit is passed when filtering a quantity, assume the unit of the property/annotation?

h=bl.filter({'t_start':0})
print len(h)
print h[0]
# This is 0 seconds, not 0
print h[0].t_start
@lphan
Copy link

lphan commented Jun 23, 2015

This is what I get from running of above code:

print len(h)  # 30
print h[0]     # [ 0.01  3.3   9.3 ] uV
print h[0].t_start   # 0.0 s

The quantities is also included in output. What went wrong here, I'm not sure that I got it.

@mdenker mdenker changed the title Filtering does not recognize quantities -- desired? Filtering does not recognize quantities May 2, 2017
@mdenker mdenker removed the question label May 2, 2017
Moritz-Alexander-Kern pushed a commit that referenced this issue Dec 7, 2021
Implement suggestions from review of PR for nwb2 branch
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