comnum.spec_blocks#
- comnum.spec_blocks()#
The blocks of the declarative links, their parameters and their ports.
- Returns:
for every block, its
summary,starts(it starts a link),needsandgives(the facts of the frame it reads and may add:samples,symbols,constellation,noise,llr…) and itsparams({name: {default, doc, unit, choices, type, minimum, exclusive_minimum, maximum, required}},typebeing a JSON Schema).- Return type:
- Raises:
ValueError – for a default that has no JSON form (not expected from the registry).
Examples
>>> import comnum >>> b = comnum.spec_blocks()["awgn_ebn0"] >>> b["params"]["ebn0_db"]["required"], b["gives"] (True, ['noise'])