from #545
Observed:
In elements.py, class Edfa, method interpol_params assumes at least two channels and computes slot width as:
self.slot_width = self.channel_freq[1] - self.channel_freq[0]
With a single channel (len(self.channel_freq) == 1), accessing self.channel_freq[1] raises IndexError.
Expected:
GNPy should support single-channel operation (common in testing/provisioning) or at minimum raise a clear error with guidance.
from #545
Observed:
In elements.py, class Edfa, method interpol_params assumes at least two channels and computes slot width as:
self.slot_width = self.channel_freq[1] - self.channel_freq[0]
With a single channel (len(self.channel_freq) == 1), accessing self.channel_freq[1] raises IndexError.
Expected:
GNPy should support single-channel operation (common in testing/provisioning) or at minimum raise a clear error with guidance.