Skip to content

Commit

Permalink
Merge pull request #259 from jktjkt/docs
Browse files Browse the repository at this point in the history
docs: Show a pretty picture of GNPy in action

Thanks to Esther for suggesting this, and to Gert and Esther for their reviews.
  • Loading branch information
jktjkt authored Jun 19, 2019
2 parents a3778df + 33832b3 commit 0d7a187
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
.. image:: docs/images/GNPy-banner.png
:width: 100%
:align: left
:alt: GNPy with an OLS system

====================================================================
`gnpy`: mesh optical network route planning and optimization library
====================================================================
Expand Down Expand Up @@ -117,16 +122,13 @@ fully-functional programs.
specific, delineated use cases to drive requirements for future
development.*

**To get started, run the main transmission example:**

**Note**: *Examples should be run from the examples/ folder.*

.. code-block:: shell-session
This example demonstrates how GNPy can be used to check the expected SNR at the end of the line by varying the channel input power:

$ pwd
/path/to/oopt-gnpy
$ cd examples
$ python transmission_main_example.py
.. image:: https://telecominfraproject.github.io/oopt-gnpy/docs/images/transmission_main_example.svg
:width: 100%
:align: left
:alt: Running a simple simulation example
:target: https://asciinema.org/a/252295

By default, this script operates on a single span network defined in
`examples/edfa_example_network.json <examples/edfa_example_network.json>`_
Expand All @@ -137,8 +139,7 @@ example, to use the CORONET Global network defined in

.. code-block:: shell-session
$ cd examples
$ python transmission_main_example.py CORONET_Global_Topology.json
$ ./examples/transmission_main_example.py examples/CORONET_Global_Topology.json
It is also possible to use an Excel file input (for example
`examples/CORONET_Global_Topology.xls <examples/CORONET_Global_Topology.xls>`_).
Expand Down
Binary file added docs/images/GNPy-banner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 0d7a187

Please sign in to comment.