iiasa / climate-assessment

https://climate-assessment.readthedocs.io/en/latest
MIT License
19 stars 18 forks source link

Correct way to use the CLI #48

Open gabriel-abrahao opened 9 months ago

gabriel-abrahao commented 9 months ago

Hi all,

Basic question here. I'm wondering what is the intended way to use the CLI and the scripts contained in scripts. With a development version, I can just call e.g. python /path/to/cloned/climate-assessment/scripts/run_harm_inf.py --flags. However, the scripts folder is not installed when using pip. So, what was the original plan to install and use the CLI scripts? Are they supposed to only be called inside python, or is Anaconda the only supported way to use the CLI?

I ask because we are trying to avoid actual python code in the REMIND implementation, and stick to the end-user scripts as much as possible. Of course if that's not supposed to be supported, we can get some python in there, or I can do the work to make the CLI more "installable" if someone points me in the right direction.

Thanks anyway

jkikstra commented 9 months ago

Hi Gabriel, thanks for opening this question.

Note that at the moment there's no one "correct way to use the CLI". As we developed this for AR6, we do not currently provide full support for functionality, so there's a bit of "let's all try to contribute and keep it up-to-date when we can" and "if it works, great" :). Indeed, scripts itself is mainly there to provide ways of how to use it, but the current idea was not to also include it in the package distribution (it rather should be scripts that make use of the package). As mentioned by Pascal in the thread you linked, you generally should be able to import from cli.py

Some use cases: