-
Notifications
You must be signed in to change notification settings - Fork 10
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
Notebook showing how to use LinearSimulator to generate particle images from a given volume #119
Conversation
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
Interested in getting this notebook to run so checked out this branch, and came across a a few errors in the notebook as is, though I am not sure if they relate to why tests are failing, and they could very well relate to a problem on my end... Problem 1:
I can move forward by just copying in the function directly to the notebook for now, but clearly this is not ideal. Problem 2:
My |
@bogdantoader thank you for this great PR! Can you follow the PR checklist above? For example, the tests need to pass (see Test / build (pull request) above) before we can mark it for review. --> I will mark the PR as draft in the meantime. many thanks! |
… all the local paths with /work/ to ensure it runs in container
@ninamiolane Apologies, I was aware the notebook test was failing when we finished on Friday and in the meantime I managed to get it to work on my laptop. I’ll push the working version when I’m back in the office tomorrow @sonyahanson are you running the notebook in the simSPI anaconda environment and did you run “pip install -e .” on each of the 3 repositories? I wonder if that’s why it can’t see the module and also maybe it’a using a different version of pickle than the one in the environment file. I’ll take a closer look at this tomorrow as well! |
Did the access change since the hackathon? I can't push to this branch anymore: (simspi) bogdan@Bogdans-MacBook-Pro simSPI % git push origin linear_simulator_nb Please make sure you have the correct access rights |
Apologies @bogdantoader , yes we did change some access rights after a PR was merged to master without code review -- but we were too strict! You should have the correct rights now, let me know if the problem persist. |
Codecov Report
@@ Coverage Diff @@
## master #119 +/- ##
==========================================
- Coverage 98.39% 98.12% -0.26%
==========================================
Files 15 15
Lines 744 744
==========================================
- Hits 732 730 -2
- Misses 12 14 +2
Continue to review full report at Codecov.
|
… if the docker container is too slow
Not sure why the test coverage is lower - the "impacted file" tem.py is not touched by these changes |
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.
Very nice, thank you for this addition! LGTM.
The linear simulator is a differentiable simulator of cryo-EM images that implements the so-called "weak-phase approximation" of the cryo-EM image formation model.
This simulator is a key piece for deep generative models. Being able to explain its use is fundamental for simSPI, which makes this task a high-priority task.
Checklist
Verify that your PR checks all the following items.
test_*.py files
corresponding the files modified by this PR,If some items are not checked, mark your PR as draft (Look for "Still in progress? Convert to Draft" on your PR) . Only mark the PR as "Ready for review" if all the items above are checked.
If you do not know how to address some items, reach out to a maintainer by requesting reviewers.
If some items cannot be addressed, explain the reason in the Description of your PR, and mark the PR ready for review
Description
Issue
Issue 107
Additional context