    def __multiply_precip_cascade_to_match_ensemble_members(self):
        """
        Duplicate the last p-1 precipitation cascades across all ensemble members
        for the AR(p) model, ensuring each member has the required input structure.
        """
        self.__state.precip_cascades = np.stack(
            [
                [
                    self.__state.precip_cascades[i][-self.__config.ar_order :].copy()
                    for i in range(self.__config.n_cascade_levels)
                ]
            ]
            * self.__config.n_ens_members
        )
Duplicate the last p-1 precipitation cascades across all ensemble members
for the AR(p) model, ensuring each member has the required input structure.
pysteps/blending/steps.py