-
Notifications
You must be signed in to change notification settings - Fork 94
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
Add component group capabilities #525
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.
I'm okay approving this as long as we keep working on the new components-with-components feature set. It's a good stepping stone.
@@ -204,10 +204,6 @@ def test_fromComponent(self): | |||
class TestShapedComponent(TestGeneralComponents): | |||
"""Abstract class for all shaped components""" | |||
|
|||
def test_getBoundingCircleOuterDiameter(self): |
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.
Why are we removing this test?
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.
because we implemented it! but you're right, we should just update the test to actually test it, eh?
a6b533f
to
089506d
Compare
Hey Nick. Can you address the two conversations above? I just want to merge this PR, and it looks like they will both be fast. |
This allows the user to input component groups intended to mix different free components in different fractions. It is a follow-up to terrapower#505 as part of the larger terrapower#504 task related to improving input flexibility. This implements the addition of groups of components to blocks, which can be used to create more complex and flexible models. The code changes solved a few residual issues where iterating over the children of a block were assuming all children would be Components. Now they can be Composites with multiple Components or Components. Some upgrades to DerivedShapes were necessary so that they could work with volumetric components in addition to pure 2D ones. These are additional steps toward terrapower#504, but true practical usage of these groups is not quite done yet. More followups are needed. Added a new test covering negative volume in derived shapes
2ef113d
to
e495ebf
Compare
Description
This just allows the user input of component groups intended to mix
different free components in different fractions. As is, this only
allows the input but does not implement any actual construction of
objects. It is a follow-up to #505 as part of the larger #504 task
related to improving input flexibility.
This needs to have a test that shows it reading/writing to/from
the database.
Checklist
If user exposed functionality was added/changed:
doc
folder.setup.py
.