def METHOD_NAME(self, consistency=None, refinement=None):
    """
    Set the number of iterations for the alignment algorithm.
    Parameters
    ----------
    consistency : int, optional
        The number of consistency iterations.
    refinement : int, optional
        The number of refinement iterations.
    """
    if consistency is not None:
        self._consiters = consistency
    if refinement is not None:
        self._refineiters = refinement