Transmission_main_example output changed
The output of $ python transmission_main_example is now more explicit in develop than what is shown in Readme. It looks now like this:
Transmission result for input power = 0.00dBm :
Transceiver Site_B
OSNR ASE (0.1nm, dB): 32.03
OSNR ASE (signal bw, dB): 27.95
SNR total (signal bw, dB): 26.27
SNR total (0.1nm, dB): 30.35
(No source node specified: picked Site_A)
(No destination node specified: picked Site_B)
Let's wait for #299 , then I'll update the asciicast.
i'm sorry, i cannot find the file 'transmission_main_example', is the file deleted? Could you please provide the folder 'example' again?
@awgnxr, we've changed the code a few times since 2019, and these scripts are now generated on-the-fly when GNPy is installed, and therefore their location depends on the installation method. As a user, you can find them via:
-
gnpy-transmission-exampleis a program that you can run directly instead of doing the formerpython transmission_main_example.py. - the directory name where the default equipment library, example topologies, etc, are stored can be printed via executing
gnpy-example-data
Here's where they are located in case you're a Python developer and would like to work on the code:
- The actual Python code which implements this example functionality is
gnpy.tools.cli_examples.transmission_main_example(). - The example data are shipped in
gnpy/example-data.