Skip to content

Commit

Permalink
fix unit test and documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
roosre committed Jun 3, 2024
1 parent a3e176b commit f84eb61
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions doc/source/api/layup_info.rst
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ example shows how to evaluate material properties.
get_constant_property_dict
:template: autosummary/no_methods_doc/base.rst.jinja2
MaterialProperty
MaterialMetadata



Expand Down
3 changes: 1 addition & 2 deletions src/ansys/dpf/composites/layup_info/material_properties.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,9 +230,8 @@ class MaterialMetadata:
isotropic, adhesive, undefined. Regular stands for uni-directional.
`undefined` is used of the ply type is not available.
solver_material_id:
Material index of the solver. 0 if data is not available
Material index of the solver. 0 if data is not available.
"""

dpf_material_id: int = 0
material_name: str = ""
ply_type: str = "undefined"
Expand Down
2 changes: 1 addition & 1 deletion tests/composite_model_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def test_basic_functionality_of_composite_model(dpf_server, data_files, distribu

solver_mat_ids = 4 * [0]
ply_types = 4 * ["unknown"]
if version_equal_or_later(dpf_server, "8.2"):
if version_equal_or_later(dpf_server, "8.0"):
solver_mat_ids = [5, 4, 3, 2]
if version_equal_or_later(dpf_server, "9.0"):
ply_types = ["honeycomb_core", "regular", "woven", "undefined"]
Expand Down

0 comments on commit f84eb61

Please sign in to comment.