Motorbike example is broken - no input file
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 88/100
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.
Description
🔍 Before submitting the issue
- I have searched among the existing issues
- 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
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
- Dominant language
- Python
- Stars
- 5
- Forks
- 1
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 12
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from ansys/pyhps
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 45/100
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 35/100
-
enable queries over the set of files supported by project API method copy_default_execution_script Openenhancement
Difficulty 4/5 3-5 days Newbie friendliness 35/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100