-
Notifications
You must be signed in to change notification settings - Fork 17
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
Abort with useful message if users try to use an input parameters no longer supported #611
Abort with useful message if users try to use an input parameters no longer supported #611
Conversation
@SeverinDiederichs @AlexanderSinn |
I can’t think of any right now, but if this feature is going to be used more in the future I would suggest calling |
Agreed, good point, I'll change that. |
I also don't think that we had any breaking changes in the input files recently except for the |
@AlexanderSinn hm but then the main members (like |
Yes good point, maybe just leave it as is and add a comment warning about the ordering (making sure a missing/wrong parameter wont prematurely crash it). Or the cleanest solution I can think of is to make a function |
Hm, that's a good idea, but this only works for input parameters that changed name, we would still need specific tests for input parameters that just don't exist anymore. For instance |
I would put |
replaced by #612 |
This PR proposes to explicitly check if the user specifies some old input parameters, and crash with a meaningful message if it is the case. This is not as stable as backward compatibility, but is also much less constraint in terms of development, and should help the user experience.
Test: using a deprecated input parameter Ade the code crash with proper error message: