Hi there,
I’m struggling to implement an interface which has multiple methods with the same name but different signatures. Typically ParameterDriversProvider
is like this, with getParameters which can take either no arguments, or one, or two. I’ve tried this:
@JOverride()
def getParameters(self):
return []
@JOverride()
def getParameters(self, a):
return []
@JOverride()
def getParameters(self, a, b):
return []
but I get the following (trying to run a propagation, with a custom ForceModel
which inherits from this interface):
TypeError: CustomForce.getParameters() missing 1 required positional argument: 'b'
Cheers,
Romain