ICComponentProperty.component_type setter silently fails after save without clone
- Dominant language
- Python
- Stars
- 7
- Forks
- 4
- PR merge metrics
- No merged PRs in 30d
Description
### 🔍 Before submitting the issue
- [x] I have searched among the existing issues
- [x] I am using a Python virtual environment
### 🐞 Description of the bug
The test at https://github.com/ansys/pyedb-core/blob/0252be8f453079e3886011d5737d54813c84717a/tests/e2e/integration_tests/test_ic_component.py#L64 fails at the second `assert == ` (asserting the correct value in the saved database) unless a clone of the `ComponentGroup.component_property` is taken. The test will pass if the commented status of these two lines is swapped:
https://github.com/ansys/pyedb-core/blob/0252be8f453079e3886011d5737d54813c84717a/tests/e2e/integration_tests/test_ic_component.py#L53-L54
The documentation for `component_property` states "a copy is returned; use the setter for any modifications to be reflected" so it is not immediately clear to me if this is a bug in the property setter or in the documentation. However, the same statement is made in the documentation of `ICComponentProperty.die_property` and in this test modifications are shown to work correctly without taking an explicit clone.
### 📝 Steps to reproduce
Run the test at https://github.com/ansys/pyedb-core/blob/0252be8f453079e3886011d5737d54813c84717a/tests/e2e/integration_tests/test_ic_component.py#L64 (from https://github.com/ansys/pyedb-core/tree/set-die-type)
### 💻 Which operating system are you using?
Windows
### 📀 Which ANSYS version are you using?
2026.1
`ansys-edb-core==0.3.1`
### 🐍 Which Python version are you using?
3.13
### 📦 Installed packages
```shell
ansys-api-edb==0.3.0
-e file:///D:/git/Ansys/pyedb-core
ansys-tools-common==0.5.0
cachetools==7.1.1
certifi==2026.4.22
cfgv==3.5.0
charset-normalizer==3.4.7
click==8.3.3
colorama==0.4.6
coverage==7.14.0
distlib==0.4.0
filelock==3.29.0
grpcio==1.80.0
identify==2.6.19
idna==3.14
iniconfig==2.3.0
nodeenv==1.10.0
packaging==26.2
platformdirs==4.9.6
pluggy==1.6.0
pre-commit==4.6.0
protobuf==6.33.6
pygments==2.20.0
pyproject-api==1.10.0
pytest==8.4.1
pytest-cov==6.2.1
pytest-mock==3.14.1
python-discovery==1.3.0
pyyaml==6.0.3
requests==2.33.1
scooby==0.11.2
tomli-w==1.2.0
tox==4.53.1
typing-extensions==4.15.0
urllib3==2.7.0
virtualenv==21.3.1
```
Contributor guide
Assessment
This issue has not been assessed yet.