`overwrite` parameter doesn't behave as expected
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 42/100
Research direction
Start with src/muse/outputs/sinks.py at the linked line and read the output configuration documentation for the csv and aggregate sinks. Reproduce the behavior with an omitted overwrite setting and an existing output file; done means the effective behavior is consistent with the documented scope, with the desired global-versus-per-output setting clarified.
Written by the indexing model from the issue text.
Description
This parameter is used on a per-output basis to control whether the program will overwrite existing files. See here
If you set this as false then the program will refuse to overwrite existing files and will abort, as expected. However, if this parameter is not specified, then it appears to default to true (i.e. overwriting existing files), despite what the documentation says. Not sure what's going on though, because this line looks like it's taking False as the default:
So clearly something is broken somewhere.
In any case, it seems strange to have this setting on a per-output basis. I think it would make much more sense as a global setting (i.e. if false, no files will be overwritten)
Update: Actually, the documentation does say that the overwrite parameter only applies to the "csv" sink (not the "aggregate" sink), which I missed before. Still, I'm leaving this issue up as I still think things could be improved here.
- Dominant language
- Python
- Stars
- 29
- Forks
- 12
- 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 EnergySystemsModellingLab/MUSE_OS
-
EnergySystemsModellingLab/MUSE_OS#850 · 1 assignee ·
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 35/100
-
bug
EnergySystemsModellingLab/MUSE_OS#804 · 2 comments · 3 assignees ·
-
bug
EnergySystemsModellingLab/MUSE_OS#795 · 5 comments · 2 assignees ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
All issues in EnergySystemsModellingLab/MUSE_OS
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