Closed nujust closed 3 years ago
Hi,
Thanks for noticing. There were some other arguments that were missing types too. I've added them now (although I'm not sure if they are actually needed since choices defines allowed values).
Hi, Thank you for your great job.
It seems that the types of the type
and choice
arguments must match.
I noticed this problem when I ran pipeline.py
with the argument --icmodel 5
.
I faced this error:
pipeline.py: error: argument --icmodel: invalid choice: '5' (choose from 1, 2, 3, 4, 5)
In this case, 5
is entered as a string. Because choice
are int
, the types did not match.
This is discripted here: https://docs.python.org/3/library/argparse.html#choices
Note that inclusion in the choices container is checked after any type conversions have been performed, so the type of the objects in the choices container should match the type specified
Hello.
There is missing type at
icmodel
argument.line 84-86 in
pipeline.py
Is the following correct?
Thank you.