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

Suggest: improve CLI error messages #17

Open
richelbilderbeek opened this issue Jul 2, 2021 · 1 comment
Open

Suggest: improve CLI error messages #17

richelbilderbeek opened this issue Jul 2, 2021 · 1 comment

Comments

@richelbilderbeek
Copy link
Contributor

Dear GenoCAE maintainers,

I enjoy GenoCAE quite a bit and especially the examples are great!

What would make me like GenoCAE even better, is to have clearer error messages from the CLI. I think redirecting the user to the help is great, but a clearer error message to guide the user to the next step would be even better.

Some examples:

Example 1

This is not something a user will blame you for, it is more of an opening to the next example.

python run_gcae.py train

I get:

2021-07-02 11:35:47.399470: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcudart.so.10.1
tensorflow version 2.3.3
Invalid command. Run 'python run_gcae.py --help' for more information.

I expected something like:

`datadir` is missing. Please specify the data folder using `--datadir [data dir]`, e.g. `--datadir example_tiny/`

Example 2

This is what I had myself:

python run_gcae.py train --datadir example_tiny/ --data HumanOrigins249_tiny --model_id M1 --train_opts_id ex3 --data_opts_id b_0_4

I got:


2021-07-02 11:35:25.100815: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcudart.so.10.1
tensorflow version 2.3.3
Invalid command. Run 'python run_gcae.py --help' for more information.

I expected something like:

`epochs` is missing. Please specify the number of epochs using `--epochs [number]`, e.g. `--epochs 20`
@richelbilderbeek
Copy link
Contributor Author

Note that even my suggestion at example 2 was wrong :-)

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

1 participant