ruvnet/RuView · error · PhaseSanitizationError

Failed to filter noise: {e}

Error message

Failed to filter noise: {e}

What it means

Error "Failed to filter noise: {e}" thrown in ruvnet/RuView.

Source

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

        
        Args:
            phase_data: Phase data (2D array)
            
        Returns:
            Filtered phase data
            
        Raises:
            PhaseSanitizationError: If noise filtering fails
        """
        if not self.enable_noise_filtering:
            return phase_data
        
        try:
            filtered_data = self._apply_low_pass_filter(phase_data, self.noise_threshold)
            return filtered_data
            
        except Exception as e:
            raise PhaseSanitizationError(f"Failed to filter noise: {e}")
    
    def _apply_low_pass_filter(self, phase_data: np.ndarray, threshold: float) -> np.ndarray:
        """Apply low-pass filter to remove high-frequency noise."""
        filtered_data = phase_data.copy()
        
        # Check if data is large enough for filtering
        min_filter_length = 18  # Minimum length required for filtfilt with order 4
        if phase_data.shape[1] < min_filter_length:
            # Skip filtering for small arrays
            return filtered_data
        
        # Apply Butterworth low-pass filter
        nyquist = 0.5
        cutoff = threshold * nyquist
        
        # Design filter
        b, a = signal.butter(4, cutoff, btype='low')
        

View on GitHub (pinned to 4685618388)

When it happens

Trigger: Thrown at archive/v1/src/core/phase_sanitizer.py:241 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/2dba2919e9347d4b. Report an issue: GitHub.