-
Notifications
You must be signed in to change notification settings - Fork 187
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 writevtk() bug where types=all was ignored #3290
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.
There is an issue with the conditionals when using types = 'all'
: TypeError: 'in <string>' requires string as left operand, not int
, can be avoided using Python's short-circuit evaluation.
Codecov Report
@@ Coverage Diff @@
## python #3290 +/- ##
=======================================
+ Coverage 85% 85% +<1%
=======================================
Files 534 534
Lines 25524 25524
=======================================
+ Hits 21948 21949 +1
+ Misses 3576 3575 -1
Continue to review full report at Codecov.
|
switch conditionals as suggested by JNGrad Co-Authored-By: Jean-Noël Grad <jgrad@icp.uni-stuttgart.de>
bors r+ |
3288: core: Simplify particle removal r=RudolfWeeber a=fweik Fixes #3286. Description of changes: - Simplify particle removal by doing one linear pass over all particles instead using index 3290: fix writevtk() bug where types=all was ignored r=jngrad a=christophlohrmann Description of changes: - fixed bug where the argument ``types='all'`` was ignored by ``system.part.writevtk()`` PR Checklist ------------ - [ ] Tests? - [ ] Interface - [ ] Core - [ ] Docs? Co-authored-by: Florian Weik <fweik@icp.uni-stuttgart.de> Co-authored-by: Christoph Lohrmann <clohrmann@icp.uni-stuttgart.de> Co-authored-by: christophlohrmann <47663906+christophlohrmann@users.noreply.github.com>
Build succeeded |
Description of changes:
types='all'
was ignored bysystem.part.writevtk()
PR Checklist