Skip to content
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

Update 0.4 release branch #449

Merged
merged 17 commits into from
Apr 18, 2024
Merged
Show file tree
Hide file tree
Changes from 14 commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion examples/006_filter_composite_data_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,9 @@
)

value = stress_data[selected_indices][:, component]
local_result_field.append(value, element_id)
# value needs to be passed as list because dpf does not support numpy
# slices in the append call.
local_result_field.append(value.tolist(), element_id)

composite_model.get_mesh().plot(result_field)

Expand Down
4,567 changes: 0 additions & 4,567 deletions poetry.lock

This file was deleted.

4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ build-backend = "poetry.core.masonry.api"
[tool.poetry]
# Check https://python-poetry.org/docs/pyproject/ for all available sections
name = "ansys-dpf-composites"
version = "0.4.0"
version = "0.4.1"
description = "Post-processing of composite structures based on Ansys DPF"
license = "MIT"
authors = ["ANSYS, Inc. <[email protected]>"]
Expand All @@ -14,7 +14,7 @@ readme = "README.rst"
repository = "https://github.com/ansys/pydpf-composites"
documentation = "https://composites.dpf.docs.pyansys.com"
classifiers = [
"Development Status :: 4 - Beta",
"Development Status :: 5 - Production/Stable",
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
Expand Down
1 change: 1 addition & 0 deletions release_checklist.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@
* Add docker pull for the container with the new version tag in ci_cd.yml
* Add pytest run for the new version in tox.ini
* Update the compatibility in the docs: intro.rst / Compatibility
* Revert to released version of dpf core in the pyproject.toml file
* Follow this guide (https://dev.docs.pyansys.com/how-to/releasing.html) to create a release branch and release. Also bump version in test_metadata.py test.
4 changes: 2 additions & 2 deletions tests/filter_layered_data_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def get_result_field(
# Conversion to a list is a temporary workaround
# because the append method does currently not work
# reliably for slices of numpy arrays
local_result_field.append(list(values), element_id)
local_result_field.append(values.tolist(), element_id)
else:
local_result_field.append(strain_data[selected_indices, component], element_id)
return result_field
Expand Down Expand Up @@ -166,7 +166,7 @@ def test_filter_by_global_ply(dpf_server):
component = 0
value = strain_data[selected_indices][:, component]

local_result_field.append(value, element_id)
local_result_field.append(value.tolist(), element_id)

# Ply is only present in element 1 and 2
assert list(result_field.scoping.ids) == [1, 2]
Expand Down
2 changes: 1 addition & 1 deletion tests/test_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@


def test_pkg_version():
assert __version__ == "0.4.0"
assert __version__ == "0.4.1"
Loading