We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
For backward compatibility I'd like to dual support:
problem
Problem
problem.addOption()
Problem.add_option()
problem.setProblemScaling()
Problem.set_problem_scaling()
Problem.set_scaling()
So ipopt/__init__.py would have:
ipopt/__init__.py
from cyipopt import Problem problem = Problem
And there would be dual methods:
class Problem(): def add_option(...): # all functional code here def addOption(self, *args, **kwargs): # maybe add a deprecation warning here self.add_option(*args, **kwargs)
The text was updated successfully, but these errors were encountered:
Is this still of interest? I'm keen to get involved and this issue looks like it'd be a good place to start.
Sorry, something went wrong.
This is, the only thing is that we'd want to deprecate them method names, so have both for some time.
Yup, understood. Will follow your suggestion for dual support with deprecation warnings for the old non-PEP8 style.
Cool, thanks for helping :)
No branches or pull requests
For backward compatibility I'd like to dual support:
problem
->Problem
problem.addOption()
->Problem.add_option()
problem.setProblemScaling()
->Problem.set_problem_scaling()
orProblem.set_scaling()
So
ipopt/__init__.py
would have:And there would be dual methods:
The text was updated successfully, but these errors were encountered: