Fix wrong parameter name in error message raised in compute_nli

The error message was refering to method_nli which does not exist. The
correct parameter name is nli_method_name.

Change-Id: I24f24a2c5251317e1a80dda60aa27ec151628172
Signed-off-by: Jonas Mårtensson <jonas.martensson@ri.se>
This commit is contained in:
Jonas Mårtensson
2021-05-26 22:24:16 +02:00
parent b867c57bee
commit dba4da0169

View File

@@ -484,7 +484,7 @@ class NliSolver:
eta_matrix = self._compute_eta_matrix(carrier, *carriers)
carrier_nli = self._carrier_nli_from_eta_matrix(eta_matrix, carrier, *carriers)
else:
raise ValueError(f'Method {sim_params.nli_params.method_nli} not implemented.')
raise ValueError(f'Method {sim_params.nli_params.nli_method_name} not implemented.')
return carrier_nli