(self, data, shared_data=None)
return self.compute(data, shared_data)
Fallback if common parts are not passed.
Fallback if common parts are not passed.
Fallback if common parts are not passed .
def __call__(self, data, shared_data=None):
        """Fallback if common parts are not passed."""
        if shared_data is None:
            shared_data = self.compute_shared(data)
        return self.compute(data, shared_data)
def __call__ ( self , data , shared_data = None ) : if shared_data is None : shared_data = self . compute_shared ( data ) return self . compute ( data , shared_data )