-
Notifications
You must be signed in to change notification settings - Fork 5
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
Fix command line argument #229
Conversation
add _add_tags method
…/choderalab/modelforge into fix-device-command-line-argument
…il) often on the CI. I'm planning on refactoring the code to remove this functionality, as we do not need a specialized function for this, but can just provide more info than querying the API which seems problematic at times.
…form list evaluation, so input can be of form "[0,1]", "(0,1)" or just "0,1"
This looks good. Good catch on parsing the devices; I had this initially as just an int when I checked, then realized it could be a list and didn't properly test apparently (incorrectly assuming it would properly coerce the input). I pushed a minor change that looks for the presence of a comma instead of square brackets, so the input can be either "[0,1]" or "(0,1)" or "0,1" |
Unfortunately, I think that won't work! It's kind of counterintuitive how this parameter works: when you pass an |
Hmm, I'll switch it back, I guess I misunderstood what this is doing. Maybe we need to eventually change the input syntax to make it clearer. Like two separate arguments, |
Yeah, this is confusing! THat wasn't my idea, but is what PyTorch Lighning is expecting |
I also commented out the test figshare download test as reading from their API seems to randomly be timing out/failing on some of the CI nodes (inconsistent failures). I plan to refactor the code and the download from figshare function will be removed. |
Description
There were two separate bugs affecting command-line arguments:
int
or aList[int]
, this was not correctly handled by theargparse
type checkread_config
function was doing the opposite (the docstring described the correct behavior)Status