Module

class mosfit.modules.Module(name, model, **kwargs)[source]

Bases: object

Base Module class.

Methods Summary

dense_key(key) Manipulate output keys conditionally.
get_bibcode() Return any bibcodes associated with the present Module.
key(key) Substitute user-defined replacement key names for local names.
name() Return own name.
prepare_input(key, **kwargs) Prepare keys conditionally.
process(**kwargs) Process module, should always return a dictionary.
receive_requests(**requests) Receive requests from other Module objects.
reset_preprocessed(exceptions) Reset preprocessed flag.
send_request(request) Send a request.
set_attributes(task) Set key replacement dictionary.
set_event_name(event_name) Set the name of the event being modeled.

Methods Documentation

dense_key(key)[source]

Manipulate output keys conditionally.

get_bibcode()[source]

Return any bibcodes associated with the present Module.

key(key)[source]

Substitute user-defined replacement key names for local names.

name()[source]

Return own name.

prepare_input(key, **kwargs)[source]

Prepare keys conditionally.

process(**kwargs)[source]

Process module, should always return a dictionary.

receive_requests(**requests)[source]

Receive requests from other Module objects.

reset_preprocessed(exceptions)[source]

Reset preprocessed flag.

send_request(request)[source]

Send a request.

set_attributes(task)[source]

Set key replacement dictionary.

set_event_name(event_name)[source]

Set the name of the event being modeled.