-
Notifications
You must be signed in to change notification settings - Fork 12
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
Add more tests #96
Add more tests #96
Conversation
Not sure what you mean here. |
I mean, do we really care about bad users inputs and add a lot of tests for it in code, or is the user responsible to give bad values? |
After all, I have no idea about the output for those limit cases, users should define it, I can adapt. |
There are 2 things here to me:
Having the tests, ensure that the implicit behaviors remain the same with the changes in the implementation. |
I put some of the limit case behaviors here : For the rest, I think this is more about you choosing what seems reasonable or not. Then if someone complains you can change it. |
About the returned
Also I tried the
The difference is massive. So to summarize :
So basically if you can provide a numpy array for the data,j the ids and the times also, the gain in perf on the python / dataframe side will be HUGE. |
src/report_reader.cpp
Outdated
double start = tstart.value_or(tstart_); | ||
double stop = tstop.value_or(tstop_); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ping
The changes are really nice ! Some comments :
|
First comment updated, trying to summarize with all things asked in this patch. |
@tomdele inverted Selection is already tested and throw |
It works for me |
actually I have this :
maybe I messed up ? |
just add the same tests as the Frame version and then we will be sure ! |
We finally solve the problem of array data stored somewhere and we want to return only a wrapper numpy array. Co-authored-by: Fernando Pereira <[email protected]>
So I think we can merge it with the fix of @ferdonline ? |
can you just add a simple test to check the double access to the data and the times ? so we can t regress on this ? |
it's done |
For time not data. If you want to change the bindings one day for matrix we don t want to regress |
Ok, let's go |
I am good |
Still to do: