-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Allow separate config files for parameters with class type when LightningCLI is in subclass_mode=False #10286
Allow separate config files for parameters with class type when LightningCLI is in subclass_mode=False #10286
Conversation
Dear @mauvilsa, We are releasing v1.5 by tomorrow. Do you believe you could get this PR by then ? Best, |
Yes, sure. This is a small change. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM !
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 😃
What does this PR do?
This enables the possibility of having separate config files for parameters whose type hint is a class when the
LightningCLI
is insubclass_mode=False
. Forsubclass_mode=True
this option is enabled by default so this change also makes it more consistent.For example for a CLI like:
it would be possible to have a config like:
Fixes omni-us/jsonargparse#95 (comment)
Does your PR introduce any breaking changes? If yes, please list them.
Before submitting
PR review
Anyone in the community is welcome to review the PR.
Before you start reviewing make sure you have read Review guidelines. In short, see the following bullet-list:
Did you have fun?
Make sure you had fun coding 🙃