diff --git a/gnpy/core/elements.py b/gnpy/core/elements.py index a33b3d85..e44b4faf 100644 --- a/gnpy/core/elements.py +++ b/gnpy/core/elements.py @@ -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 `__. :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 """ diff --git a/tests/test_propagation.py b/tests/test_propagation.py index 467b6beb..9b169390 100644 --- a/tests/test_propagation.py +++ b/tests/test_propagation.py @@ -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'