mirror of
https://github.com/Telecominfraproject/oopt-gnpy.git
synced 2025-10-30 17:47:50 +00:00
This converts our first free-standing example entry point into a function. It will become very handy when we start distributing these entry points via setuptools. Change-Id: Icd2e4658337f93cd0b0301978e2dc640de0cc72b
18 lines
348 B
Python
Executable File
18 lines
348 B
Python
Executable File
#!/usr/bin/env python3
|
|
# -*- coding: utf-8 -*-
|
|
|
|
'''
|
|
transmission_main_example.py
|
|
============================
|
|
|
|
Main example for transmission simulation.
|
|
|
|
Reads from network JSON (by default, `edfa_example_network.json`)
|
|
'''
|
|
|
|
from gnpy.tools.cli_examples import transmission_main_example
|
|
|
|
|
|
if __name__ == '__main__':
|
|
transmission_main_example()
|