mirror of
https://github.com/Telecominfraproject/oopt-gnpy.git
synced 2025-10-29 09:12:37 +00:00
Merge "coding style: remove dead code, fix up sphinx"
This commit is contained in:
@@ -418,11 +418,11 @@ class Fiber(_Node):
|
||||
return self.params.pmd_coef * sqrt(self.params.length)
|
||||
|
||||
def _gn_analytic(self, carrier, *carriers):
|
||||
"""Computes the nonlinear interference power on a single carrier.
|
||||
r"""Computes the nonlinear interference power on a single carrier.
|
||||
The method uses eq. 120 from `arXiv:1209.0394 <https://arxiv.org/abs/1209.0394>`__.
|
||||
|
||||
:param carrier: the signal under analysis
|
||||
:param carriers: the full WDM comb
|
||||
:param \*carriers: the full WDM comb
|
||||
:return: carrier_nli: the amount of nonlinear interference in W on the under analysis
|
||||
"""
|
||||
|
||||
|
||||
@@ -13,11 +13,7 @@ from pathlib import Path
|
||||
from networkx import dijkstra_path
|
||||
from numpy import mean, sqrt, ones
|
||||
|
||||
#network_file_name = 'tests/test_network.json'
|
||||
network_file_name = Path(__file__).parent.parent / 'tests/LinkforTest.json'
|
||||
# TODO: note that this json entries has a weird topology since EDfa1 has a possible branch on a receiver B
|
||||
# this might not pass future tests/ code updates
|
||||
#network_file_name = Path(__file__).parent.parent / 'examples/edfa_example_network.json'
|
||||
eqpt_library_name = Path(__file__).parent.parent / 'tests/data/eqpt_config.json'
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user