mirror of
https://github.com/Telecominfraproject/oopt-gnpy.git
synced 2025-11-01 02:28:05 +00:00
doc: fiber length summary in km, not meters
reading "80000m" is a bit more complex than just "80 km". Also let's add a space between the numebr and the unit for better readability.
This commit is contained in:
@@ -133,7 +133,7 @@ def main(network, equipment, source, destination, sim_params, req=None):
|
||||
configure_network(network, sim_params)
|
||||
|
||||
spans = [s.length for s in path if isinstance(s, RamanFiber) or isinstance(s, Fiber)]
|
||||
print(f'\nThere are {len(spans)} fiber spans over {sum(spans):.0f}m between {source.uid} and {destination.uid}')
|
||||
print(f'\nThere are {len(spans)} fiber spans over {sum(spans)/1000:.0f} km between {source.uid} and {destination.uid}')
|
||||
print(f'\nNow propagating between {source.uid} and {destination.uid}:')
|
||||
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user