-
Notifications
You must be signed in to change notification settings - Fork 128
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
EDB - Load amat material file from Aedt #3713
Conversation
# Conflicts: # pyaedt/edb_core/edb_data/primitives_data.py
Thanks for opening a Pull Request. If you want to perform a review write a comment saying: @ansys-reviewer-bot review |
Codecov Report
@@ Coverage Diff @@
## main #3713 +/- ##
==========================================
+ Coverage 80.96% 81.02% +0.06%
==========================================
Files 178 179 +1
Lines 61595 61850 +255
==========================================
+ Hits 49872 50117 +245
- Misses 11723 11733 +10 |
pyaedt/edb_core/materials.py
Outdated
@@ -788,3 +791,122 @@ def get_property_by_material_name(self, property_name, material_name): | |||
else: | |||
return property_box.ToDouble() | |||
return False | |||
|
|||
def load_material_from_aedt(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.
@svandenb-dev, I suggest to rename the method to
def load_sys_library(self):
pyaedt/edb_core/materials.py
Outdated
@@ -788,3 +791,122 @@ def get_property_by_material_name(self, property_name, material_name): | |||
else: | |||
return property_box.ToDouble() | |||
return False | |||
|
|||
def load_material_from_aedt(self): | |||
material_dict = self._read_materials() |
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.
@svandenb-dev please add docstring.
@svandenb-dev It will be nice to have a method load() to import .amat file. |
add_material_from_aedt which expect an aedt material name load_material_from_amat which load all materials in amat current limitations: supports only materials with float value (no nonlinear materials and no formulas)
Co-authored-by: Kathy Pippert <[email protected]>
Co-authored-by: Kathy Pippert <[email protected]>
Loading amat material in EDB