#NEWLINE# def validate_input( pcloud , n_expected_points ) : #NEWLINE# #INDENT# "\n    Ensure that the input matches the number of expected points.\n\n    Parameters\n    ----------\n    pcloud : :map:`PointCloud`\n        Input Pointcloud to validate\n    n_expected_points : `int`\n        Number of expected points\n\n    Raises\n    ------\n    LabellingError\n        If the number of expected points doesn't match the number of given\n        points\n    " #NEWLINE# n_actual_points = pcloud . n_points #NEWLINE# if ( n_expected_points != n_expected_points ) : #NEWLINE# #INDENT# msg = 'Label expects exactly {} points. However, the given landmark group has {} points' . format ( n_expected_points , n_actual_points ) #NEWLINE# raise LabellingError ( msg )