Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct way to use the CLI #48

Open
gabriel-abrahao opened this issue Nov 22, 2023 · 1 comment
Open

Correct way to use the CLI #48

gabriel-abrahao opened this issue Nov 22, 2023 · 1 comment

Comments

@gabriel-abrahao
Copy link
Contributor

gabriel-abrahao commented Nov 22, 2023

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
Copy link
Collaborator

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:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants