def init_from_states(
        cls,
        model_manager_state: ModelManagerState,
        output_calib_manager_state: Optional[OutputCalibManagerState] = None,
    ) -> JointState:
        """
        Initialize a probabilistic model state from an model manager state and a calibration state.

        Parameters
        ----------
        model_manager_state: ModelManagerState
            An model manager state.
        output_calib_manager_state: OutputCalibManagerState
            An output calibration manager state.

        Returns
        -------
        JointState
            A joint distribution state.
        """
        return cls(
            params=model_manager_state.params,
            mutable=model_manager_state.mutable,
            calib_params=getattr(output_calib_manager_state, "params", None),
            calib_mutable=getattr(output_calib_manager_state, "mutable", None),
        )

        Initialize a probabilistic model state from an model manager state and a calibration state.

        Parameters
        ----------
        model_manager_state: ModelManagerState
            An model manager state.
        output_calib_manager_state: OutputCalibManagerState
            An output calibration manager state.

        Returns
        -------
        JointState
            A joint distribution state.
        
fortuna/prob_model/joint/state.py