mnoptical.topo.helper_funcs

Module Contents

Functions

Span(km[, amp])

Return a fiber segment of length km with a compensating amp

build_spans(net, r1, r2, span_no, span_length[, ...])

build_link(net, r1, r2, span_no, span_length[, ...])

add_amp(net[, node_name, type, gain_dB, debugger, wdg_id])

Create an Amplifier object to add to a ROADM node

Attributes

m

mnoptical.topo.helper_funcs.m = 0.001
mnoptical.topo.helper_funcs.Span(km, amp=None, **params)

Return a fiber segment of length km with a compensating amp :param **params: optional keyword parameters for fiber/span (eg. srs_model, wd_loss etc.)

mnoptical.topo.helper_funcs.build_spans(net, r1, r2, span_no, span_length, port_no=-1, amp=False, last_ok=False, debugger=True, wdg_id=None, **params)
mnoptical.topo.helper_funcs.add_amp(net, node_name=None, type=None, gain_dB=None, debugger=True, wdg_id=None)

Create an Amplifier object to add to a ROADM node :param node_name: string :param type: string (‘boost’ or ‘preamp’ :param gain_dB: int or float