mirror of
https://github.com/Telecominfraproject/oopt-gnpy.git
synced 2025-11-02 02:57:52 +00:00
Add per degree channel power target out
- add the per degree info using the EXACT next node uid as identifier of the degree when a node is a roadm - add the degree identifier on the propagate and on the call functions - use the per degree target_pch_out_db defined in json entry for the target power in network build - verifies existence of the per degree power target in order to support partial per degree target power definition - correct test data files for expected auto design results that now should include the per degree information, even if it is the same for all degree. - in order to enable per degree power definition on direction where booster is not defined, enable the declaration of edfas in json without specifying type variety Signed-off-by: EstherLerouzic <esther.lerouzic@orange.com> Change-Id: I5004cbb250ca5fd6b6498ac9d4b9c4f28a65efee
This commit is contained in:
committed by
Jan Kundrát
parent
a5398a5c57
commit
c56ea898a6
@@ -349,7 +349,7 @@ def network_from_json(json_data, equipment):
|
||||
temp = merge_amplifier_restrictions(temp, extra_params.__dict__)
|
||||
el_config['params'] = temp
|
||||
el_config['type_variety'] = variety
|
||||
elif typ in ['Edfa', 'Fiber', 'RamanFiber']: # catch it now because the code will crash later!
|
||||
elif typ in ['Fiber', 'RamanFiber']: # catch it now because the code will crash later!
|
||||
raise ConfigurationError(f'The {typ} of variety type {variety} was not recognized:'
|
||||
'\nplease check it is properly defined in the eqpt_config json file')
|
||||
el = cls(**el_config)
|
||||
|
||||
Reference in New Issue
Block a user