@staticmethod
def _subst_params(params: list, axis: int, value: float) ->tuple:
    """Convenience method that takes a list of parameters and substitutes the one on the given axis with the
        given value.

        Args:
            params: List of parameters, one per axis.
            axis: Number of the axis to change the value for, i.e. the index in the params list.
            value: New value for axis.

        Returns:
            New params tuple.
        """
    copy = list(params)
    copy[axis] = value
    return tuple(copy)
