unused folder systematically created #2681
Replies: 1 comment 1 reply
|
Hi Rami, thank you for bringing this up. I think there are some good ideas in your post to discuss further. You're correct though, we shouldn't be hardcoding the output dir path in those spots you listed (or anywhere really). The user should be able to override that location and I think that could be addressed by passing the gnu-arg dir through to those functions where the output folder and its sub folders are created. As you've probably seen though RuFaS does need that output dir for a number of other purposes - output filters, all the various logs files, outputs from post-processing - so not having an output dir at all doesn't seem like a good option unless you're thinking of handling those things in another way (which might warrant a separate issue). I think removing the hardcoded And please feel free to tag me @ew3361zh or you can use the new @RuminantFarmSystems/dev-team tag which will ping the whole dev-team when you have the PR ready. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
A folder called "output" is systematically created, even if other names are defined by the user for the outputs folder.
This behavior is due to the hard-coded value of "output/" passed to the arg
output_directorywhen callingoutput_manager.run_startup_sequenceinTaskManager.task(here).There is also at least one other hard-coded path in
TaskManager:INPUT_DATA_CSV_WORKING_FOLDER = Path("output/saved_pool_working_folder/")(here), which is likely to result in some problems (have not checked tough).We can avoid creating this folder by setting the value of
output_directorytoNonewhenrun_startup_sequenceis called fromtask(the outputs folder is created elsewhere in the code) (here):Then, by adjusting
run_startup_sequenceaccordingly (here):If this is of interested to the RuFaS team, I can open a PR for these modifications.
All reactions