Motorbike example is broken - no input file

Open Beginner friendly
#890 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

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

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

bug
🔍 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ansys/pyhps

All issues in ansys/pyhps

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.