ansys / ansys/pyconverter-xml2py

Methods with multiple parents

Open
#419 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
6
Forks
0
PR merge metrics
No merged PRs in 30d

Description

### 📝 Description of the feature

Some functions have multiple "parents". This is the case for ``define`` and ``print``. They both appear in ``POST1`` and ``POST26``:
![image](https://github.com/user-attachments/assets/afb9bb3d-1cbd-4b42-936a-d5b18ac4691c)

For now, the first parent appearing in the parent section is the one where the function will be assigned. Thus, ``print`` and ``define`` are in ``post1`` submodule but not in ``post26``.

### 💡 Steps for implementing the feature

_No response_

### 🔗 Useful links and references

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by tracing how the converter handles parent sections for POST1 and POST26, using the `define` and `print` functions as examples. The change is complete when functions appearing under multiple parents are available in each corresponding submodule rather than only under the first parent.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
documentation
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.