coding style: remove dead code, fix up sphinx

Change-Id: I80479959d551915ddb12d14ef94ed77042b000ef
This commit is contained in:
Jan Kundrát
2020-06-12 08:52:07 +02:00
parent 06d59a5834
commit cd0415e523
2 changed files with 2 additions and 6 deletions

View File

@@ -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
"""

View File

@@ -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'