def __init__(self, calculation):
        """
        Initialize Parser instance
        """
        super(RipsParser, self).__init__(calculation)

        # check for valid input
        if not isinstance(calculation, RipsDistanceMatrixCalculation):
            raise OutputParsingError(
                "Can only parse RipsDistanceMatrixCalculation")
def __init__ ( self , calculation ) : super ( RipsParser , self ) . __init__ ( calculation ) if not isinstance ( calculation , RipsDistanceMatrixCalculation ) : raise OutputParsingError ( "Can only parse RipsDistanceMatrixCalculation" )
Initialize Parser instance