ansys / ansys/pyedb-core

Primitives on non stackup layer crash

Open
#614 0 comments 0 reactions 0 assignees View on GitHub
bug
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

when I try to retrieve primitives, if I got one on non stackup layer (e.g Measurement for instance). This error is raised
raise ve_exc
ValueError: 10 is not a valid PrimitiveType

### 📝 Steps to reproduce

NA

### 💻 Which operating system are you using?

Windows

### 📀 Which ANSYS version are you using?

NA

### 🐍 Which Python version are you using?

3.9

### 📦 Installed packages

```shell
NA
```

Contributor guide

Open the contributing guide

Research direction

Start by investigating primitive retrieval for objects on non-stackup layers and the ValueError for PrimitiveType 10. Reproduce the failure with a Measurement primitive if possible, then add coverage showing that retrieving such primitives no longer crashes.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.