mistake in python-icebreaker/src/icebreaker/cli/ib_group.py
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 45/100
Research direction
Inspect python-icebreaker/src/icebreaker/cli/ib_group.py, starting in main() and following the arguments passed to ib_igroups.main(). Verify the input path is constructed with the project directory only once, then exercise the CLI with an in_mics input to confirm the resulting path is correct.
Written by the indexing model from the issue text.
Description
There seems to be a mistake in ib_group.py.
In main(), the group_star variable is made from prepending the project_dir path to the in_mics input flag value.
group_star = os.path.join(project_dir, args.in_mics)
However, when this variable is used in the call to ib_igroups.main(), it is again prepended to the project_dir path:
ib_igroups.main(
os.path.join(project_dir, parts_star), os.path.join(project_dir, group_star)
)
This would result in the second argument to ib_igroups.main() being <path_to_project_dir>/<path_to_project_dir>/<path_to_in_mics_star_file>
Code seems to work if I change from:
group_star = os.path.join(project_dir, args.in_mics)
to
group_star = args.in_mics
- Dominant language
- Python
- Stars
- 11
- Forks
- 6
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
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 DiamondLightSource/python-icebreaker
-
Difficulty 2/5 1-3 hours Newbie friendliness 38/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 48/100
-
Difficulty 4/5 3-5 days Newbie friendliness 38/100
DiamondLightSource/python-icebreaker#10 · 1 comment ·
All issues in DiamondLightSource/python-icebreaker
Similar issues
-
documentation help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
simonw/sqlite-utils#872 ·
-
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