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:
Jan Kundrát
2019-06-17 19:26:15 +02:00
parent acafc78456
commit 07de489d6b

View File

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