Task #2326 (new)
Opened 14 years ago
Last modified 14 years ago
Parameters auto-filled — at Initial Version
Reported by: | wmoore | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | OMERO-Beta4.2 |
Component: | General | Version: | n.a. |
Keywords: | n.a. | Cc: | |
Resources: | n.a. | Referenced By: | n.a. |
References: | n.a. | Remaining Time: | n.a. |
Sprint: | 2010-04-30 (8) |
Description
If I define a parameter, E.g. scripts.Long("width", optional=True) but don't fill it in when running the script, I still find that after doing
for key in client.getInputKeys(): if client.getInput(key): commandArgs[key] = client.getInput(key).getValue()
I find that commandArgs DOES have the "width" and it's value is 0L. This is causing me zero-division errors since I normally check whether the commandArgs has "width" and IF NOT, set it to sizeX.