def __call__(self, **kwargs):
        """Make instance callable to can add input parameter one to one"""
        # Check alernate input parameters
        if kwargs.get("v", 0):
            kwargs["rho"] = 1./kwargs["v"]
            del kwargs["v"]
        if kwargs.get("W", 0):
            kwargs["A"] = 1-kwargs["W"]
            del kwargs["W"]
        if kwargs.get("xw", 0):
            kwargs["xa"] = 1-kwargs["xw"]
            del kwargs["xw"]

        self.kwargs.update(kwargs)

        if self.calculable:
            self.status = 1
            self.calculo()
            self.msg = ""
def __call__ ( self , ** kwargs ) : if kwargs . get ( "v" , 0 ) : kwargs [ "rho" ] = 1. / kwargs [ "v" ] del kwargs [ "v" ] if kwargs . get ( "W" , 0 ) : kwargs [ "A" ] = 1 - kwargs [ "W" ] del kwargs [ "W" ] if kwargs . get ( "xw" , 0 ) : kwargs [ "xa" ] = 1 - kwargs [ "xw" ] del kwargs [ "xw" ] self . kwargs . update ( kwargs ) if self . calculable : self . status = 1 self . calculo ( ) self . msg = ""
Make instance callable to can add input parameter one to one