spine-tools / SpineOpt.jl

A highly adaptable modelling framework for multi-energy systems
https://www.tools-for-energy-system-modelling.org/
GNU General Public License v3.0
57 stars 13 forks source link

SpineOpt logfile location #504

Open DillonJ opened 1 year ago

DillonJ commented 1 year ago

When I specify a log filename with no path for the the log_file_path argument for the SpineOpt tool in toolbox, it writes the file outside of the project to the following location:

C:\Users\jodyd.spinetoolbox\plugins\SpineOpt\specifications\Tool

This is problematic because if I specify an absolute path it won't be portable - it would be good if the default location was the tool folder, inside the project

Edit: I should add that this happens even when the "execute in source directory" option is selected

DillonJ commented 1 year ago

Including this in the TB 0.7 milestone - I think this is a simple thing to fix. If no path is specified, the logfile should be in the project folder somewhere, perhaps in the local tool folder?

manuelma commented 1 year ago

How would we communicate the path of the project or tool folder to SpineOpt?

Also, do we really want log files to travel with the project?

We could try a plugin trick: declare the log file as an output of the tool and in that case it will be placed in the tool's result folder.

clizbe commented 11 months ago

I'm labeling this Nice to Have - we can elevate it if it's a bigger issue.