mirror of
https://github.com/Telecominfraproject/oopt-gnpy.git
synced 2025-11-02 11:07:57 +00:00
FiberParams: print out the configuration upon failure
Apparently it's sometimes not obvious where the input data come from (see next commit), so let's show the data which caused this excpetion to the user. Change-Id: Id333903a0549c4ef5dc37c2f6ff340bd357279ea
This commit is contained in:
@@ -179,7 +179,7 @@ class FiberParams(Parameters):
|
||||
self._raman_efficiency = kwargs['raman_efficiency'] if 'raman_efficiency' in kwargs else None
|
||||
self._pumps_loss_coef = kwargs['pumps_loss_coef'] if 'pumps_loss_coef' in kwargs else None
|
||||
except KeyError as e:
|
||||
raise ParametersError(f'Fiber configurations json must include {e}')
|
||||
raise ParametersError(f'Fiber configurations json must include {e}. Configuration: {kwargs}')
|
||||
|
||||
@property
|
||||
def length(self):
|
||||
|
||||
Reference in New Issue
Block a user