-
Notifications
You must be signed in to change notification settings - Fork 8
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
fix: update VisCPU simulator wrapper to match vis_cpu v1 #233
Conversation
BREAKING CHANGE: the use_pixel_beams and bm_pix options are no longer available. `use_pixel_beam` is always effectively False. This has been deprecated already for a while.
Codecov Report
@@ Coverage Diff @@
## main #233 +/- ##
=======================================
Coverage 96.56% 96.56%
=======================================
Files 24 24
Lines 2849 2822 -27
=======================================
- Hits 2751 2725 -26
+ Misses 98 97 -1
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
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.
From what I can tell, this all looks good! When you get a chance, maybe delete the commented out stuff in the tests. On that note, it's probably worthwhile for us to brainstorm a bit about what the purpose of the beam-related tests was and whether it's appropriate to be testing that here (i.e. whether we should bother rethinking and rewriting the tests).
Thanks for doing this!
P.S. In the future, if we're adding some new cool features (like isort
), then can we keep that to a single PR? Having the whole code base be reformatted is pretty noisy and makes it a little difficult to figure out what was just reformatting and what was genuinely changed as part of the PR.
Thanks @r-pascua! Good call on all the commented code -- I've removed it. And yeah, sorry about the isort thing. That was a brain fart. |
Profiling additions
The
use_pixel_beams
andbm_pix
options are no longer available.use_pixel_beam
is always effectively False. This has been deprecated already for a while.One upshot of this is that some of the beam tests no longer work -- some of them were comparing a pixel beam sim to a non-pixel-beam sim. I don't think this was a particularly good strategy for testing the beams anyway, and I've removed the code. But we should probably come up with something to replace those kinds of tests.