-
Notifications
You must be signed in to change notification settings - Fork 163
Added First Implementation of BH Curves. At this time Temperature dep… #637
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
Conversation
…endance is not implemented
@beliaev-maksim I've created a new branch and created a new PR |
@@ -232,6 +232,12 @@ def __init__(self, material, name, val=None, thermalmodifier=None): | |||
elif val is not None and val["property_type"] == "AnisoProperty": | |||
self.type = "anisotropic" | |||
self.value = [val["component1"], val["component2"], val["component3"]] | |||
elif val is not None and val["property_type"] == "nonlinear": |
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.
elif val is not None and val["property_type"] == "nonlinear": | |
elif val["property_type"] == "nonlinear": |
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.
@MaxJPRey I cannot commit this modification. If val is None then it would fail in looking for "property_type". So I need first to check that val is filled and then search for the type
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.
Yes you are write, it would require a try/except block to prevent from that and raise an exception.
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.
try/except is more expensive when it raises compared to type check
Approved with suggestion.. |
Co-authored-by: Maksim Beliaev <[email protected]> Co-authored-by: Maxime Rey <[email protected]>
Co-authored-by: Maxime Rey <[email protected]>
…endance is not implemented