`mca_experiment.py` fails when run outside of the examples directory

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

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
82/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
python
Domain
tooling

Research direction

Start by reproducing the failure with python examples/mca_experiment.py from the repo root. The traceback names the CSV file 09-1323A-D_Advantage2_system4_fast_annealing_schedule.csv, so find where examples/mca_experiment.py opens it and how the path is built. Done means the script loads the CSV whether it is run from the repo root or from the examples directory.

Written by the indexing model from the issue text.

Description

When the mca_experiment.py example is run from outside of the examples directory (e.g. from repo root), it fails:

$ python examples/mca_experiment.py
...
FileNotFoundError: [Errno 2] No such file or directory: '09-1323A-D_Advantage2_system4_fast_annealing_schedule.csv'
Dominant language
Python
Stars
4
Forks
9
Avg merge
14m
Merged PRs (30d)
1

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No 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 dwavesystems/dwave-experimental

All issues in dwavesystems/dwave-experimental

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.