-
Notifications
You must be signed in to change notification settings - Fork 62
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
CLI: export python script that includes args from a datastack #1472
Comments
Emily pointed out:
Another option could be to use mutually exclusive args, so either the model name is passed, or a datastack JSON. https://docs.python.org/3/library/argparse.html#mutual-exclusion Example One downside here is that the model name arg is no longer a simple positional arg like it is with other subcommands ( We could also probably implement our own mutually exclusive rules that would do something like, Not allowed: |
Oops, I think I referenced this issue by mistake in an unrelated PR that closed it |
invest export-py
does not currently accept a datastack arg, though the function that builds the python script can take anargs
dict. So this should be a trivial change to add a command-line arg to the parser.I'm wanting this feature as it is the quickest way I can think of to run a model on a given datastack and drop into a python debugger on exceptions.
The text was updated successfully, but these errors were encountered: