One fewer exit() in a library scope
@@ -625,13 +625,7 @@ class Edfa(Node):
elif type_def == 'advanced_model':
nf_avg = polyval(nf_fit_coeff, -dg)
else:
- print(
- f'\x1b[1;31;40m'\
- + f'CRITICAL: unrecognized type def _{self.params.type_def}_\n\
- => please check eqpt_config.json'\
- + '\x1b[0m'
- )
- exit()
+ assert False, "Unrecognized amplifier type, this should have been checked by the JSON loader"
return nf_avg+pad, pad
def _calc_nf(self, avg = False):
