-
Notifications
You must be signed in to change notification settings - Fork 144
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
Integrate raster plot #623
Integrate raster plot #623
Conversation
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.
Hi @ssgier
Thanks for your first contribution to Lava! I'm glad to see that you dug right in and created a PR. This is a good first start; the code that we had pasted in the issue was just meant as a starting point. I believe we could make this more user friendly by exposing more parameters to the user, making the function more flexible. I would also suggest to add input validation to catch errors early and provide meaningful feedback to users when they make a mistake. This should then be unit tested to ensure that the validation works as expected.
Regarding your notes:
I am not aware of this issue. Could you look through the issues in Github to see if this has been filed? If not, please create a separate issue. This could be an environment problem.
Agreed. Re-evaluate it once you think the notebook iteself no longer needs to be changed.
Yes, I believe you are correct. Good catch. :)
Best practice is to write tests for every qualitatively different behavior of a piece of code.
|
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.
Looks very nice, @ssgier !
I remember you still wanted to reevaluate the Jupyter notebook? We can merge the PR once that is done.
Following up on the locally failed unit tests: I had a look and there were actually two separate root causes:
Setting a much higher ulimit and installing Git LFS resolved the issues and made all tests pass. I am not running an officially supported Linux distribution, so I'm not sure if the problems can also arise with the supported OSes. |
Thanks for following up on that. The first has been a problem for a while - this is due to a problem with the The second could just be missing documentation about having to use Git LFS to get the files. Feel free to add that to the documentation where you think it would be appropriate. |
You PR is now merged. Thanks again for your work on this! We very much hope you will continue to support Lava with new features and bug fixes soon! :) |
* Integrate raster plot * Improve interface and validation of raster plot utility. Add tests. * Modified error messages to be full sentences (capital in the beginning, full stop at the end) * Modified error messages in unit tests. * Re-evaluate tutorial notebook * Move spikes initialization to setUp method --------- Co-authored-by: PhilippPlank <[email protected]> Co-authored-by: Mathis Richter <[email protected]>
Issue Number: #362
Objective of pull request: Integrate raster plot
Pull request checklist
Your PR fulfills the following requirements:
flakeheaven lint src/lava tests/
) and (bandit -r src/lava/.
) pass locallypytest
) passes locallyPull request type
Please check your PR type:
What is the current behavior?
What is the new behavior?
Does this introduce a breaking change?
Supplemental information