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

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