# hbp_nrp_cleserver.bibi_config.bibi_configuration_script module¶

Script to run CLE from BIBI Configuration File

correct_indentation(text, first_line_indent_level, indent_string=' ')[source]

Adapts the indentation of the given code in order to paste it into the generated script. The indentation of the given text is determined based on the first content line (first line which consists not only of white spaces). The indentation must either use four spaces or a tab character.

Parameters
• text – the original input to adapt

• first_line_indent_level (int) – the target indentation level of the entire block

• indent_string – (Optional): the pattern for one level of indentation

Returns

deprecated(func)[source]

This is a decorator which can be used to mark functions as deprecated. It will result in a warning being emmitted when the function is used.

generate_tf(tf, external_tf_path=None)[source]

Generates the code for the given transfer function

Parameters
• tf – The transfer function to generate code for

• external_tf_path – Base folder where external python TFs are stored

Returns

A unicode string with the generated code

get_tf_name(tf_code)[source]

Returns the function name of transfer function code

@param tf_code: string with transfer function code @return: function name