diff --git a/gnpy/core/elements.py b/gnpy/core/elements.py index 11353017c..b6e020aa8 100644 --- a/gnpy/core/elements.py +++ b/gnpy/core/elements.py @@ -814,7 +814,7 @@ def _gain_profile(self, pin, err_tolerance=1.0e-11, simple_opt=True): dgt_slope = p[0] # Calculate the target slope - targ_slope = self.tilt_target / (self.params.f_max - self.params.f_min) + targ_slope = -self.tilt_target / (self.params.f_max - self.params.f_min) # first estimate of DGT scaling try: