ruvnet/RuView · error · PhaseSanitizationError

Failed to smooth phase: {e}

Error message

Failed to smooth phase: {e}

What it means

Error "Failed to smooth phase: {e}" thrown in ruvnet/RuView.

Source

Thrown at archive/v1/src/core/phase_sanitizer.py:201

        
        Args:
            phase_data: Phase data (2D array)
            
        Returns:
            Smoothed phase data
            
        Raises:
            PhaseSanitizationError: If smoothing fails
        """
        if not self.enable_smoothing:
            return phase_data
        
        try:
            smoothed_data = self._apply_moving_average(phase_data, self.smoothing_window)
            return smoothed_data
            
        except Exception as e:
            raise PhaseSanitizationError(f"Failed to smooth phase: {e}")
    
    def _apply_moving_average(self, phase_data: np.ndarray, window_size: int) -> np.ndarray:
        """Apply moving average smoothing."""
        smoothed_data = phase_data.copy()
        
        # Ensure window size is odd
        if window_size % 2 == 0:
            window_size += 1
        
        half_window = window_size // 2
        
        for i in range(phase_data.shape[0]):
            for j in range(half_window, phase_data.shape[1] - half_window):
                start_idx = j - half_window
                end_idx = j + half_window + 1
                smoothed_data[i, j] = np.mean(phase_data[i, start_idx:end_idx])
        
        return smoothed_data

View on GitHub (pinned to 4685618388)

When it happens

Trigger: Thrown at archive/v1/src/core/phase_sanitizer.py:201 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of ruvnet/RuView@4685618388 (2026-08-16). Data as JSON: /api/errors/7b9f19a7e4aeb056. Report an issue: GitHub.