ansys / ansys/pyhps

Motorbike example is broken - no input file

Open Beginner friendly
#890 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
5
Forks
1
Avg merge
1d 21h
Merged PRs (30d)
9

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 fix is at lines 324 and 325. this was probably introduced when exec_file_generate.py was added.

Change code to

input_file_ids=[f.id for f in files[:2]],
output_file_ids=[f.id for f in files[2:]],

### 📝 Steps to reproduce

Run project_setup.py to any HPS

### 💻 Which operating system are you using?

Windows

### 📀 Which ANSYS version are you using?

n/a

### 🐍 Which Python version are you using?

3.9

### 📦 Installed packages

```shell
tempora==5.8.1
tinycss2==1.4.0
tomli_w==1.2.0
tornado==6.5.5
tox==4.53.0
traitlets==5.14.3
typing-inspection==0.4.2
typing_extensions==4.15.0
urllib3==2.6.3
virtualenv==21.2.3
wcwidth==0.6.0
webencodings==0.5.1
widgetsnbextension==4.0.15
zipp==3.23.1
```

Contributor guide

Open the contributing guide

Research direction

Inspect lines 324-325 of exec_file_generate.py, then trace how project_setup.py prepares files for the Motorbike example. Run project_setup.py against an HPS on Python 3.9 and confirm the example receives an input file and produces the expected output files without the missing-input error.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Active
Clarity
Clearly specified
Newbie friendliness
88/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.