-
Notifications
You must be signed in to change notification settings - Fork 189
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
Shape union #3493
Shape union #3493
Conversation
Codecov Report
@@ Coverage Diff @@
## python #3493 +/- ##
=======================================
+ Coverage 87% 87% +<1%
=======================================
Files 534 537 +3
Lines 24367 24433 +66
=======================================
+ Hits 21216 21275 +59
- Misses 3151 3158 +7
Continue to review full report at Codecov.
|
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 good, but it would be nice to have a minimal documentation for this feature. For example, the calculate_dist()
method could use a docstring like /** Calculate the distance to the closest shape */
. In the Sphinx docs, file constraints.rst
, one could make section 11.2 a subsection of section 11.1 (and make 11.2.1 to 11.2.4 subsubsections of 11.2, but keep 11.2.5-11.2.6 as subsections of 11.1), and have a new section 11.3 to describe the union.
@jngrad this should have a formal definition of what is calculated (which is not hard), but first this has to be actually feature complete ^^ |
@fweik of course. I saw your comment when writing my review. I was a little confused at first as to what was calculated, and thought the union was a variant, until I read through the boost accumulator code ^^ |
b1c466e
to
0b8eb47
Compare
src/python/espressomd/shapes.py
Outdated
|
||
|
||
@script_interface_register | ||
class ShapeUnion(Shape, ScriptObjectRegistry): |
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.
I think this should be called Union
, it's clear from the context that this is about Shapes
.
26debdb
to
af2201c
Compare
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.
LGTM. The change on the bondary logic need to be applied to #2701 (Walberla).
af2201c
to
3f6bc80
Compare
@fweik I've simplified the LB boundary initialization a bit via boost. |
3f6bc80
to
b668d74
Compare
b668d74
to
2e0260e
Compare
A union of shapes.