iodutil¶
buzz.iodutil
Functions
|
Change the namespace of a dictionary. |
|
combines the input and output dictionaries into a single dictionary |
|
Combine input and output dictionaries |
|
Get the namespace of a system |
|
returns True if the key is an input to the control system and False if it is an output |
|
returns a list of the inputs to the control system either their names or their values |
|
returns a list of the outputs to the control system either their names or their values |
|
Take an iod and remove the inputs and outputs specified by the indices and or names provided in the inputs_to_remove and outputs_to_remove lists |
|
Square the dictionary by removing any holes in the indices and moving down those with higher indices to fill the holes |
Details
- combineiod(input_dict, output_dict)[source]¶
combines the input and output dictionaries into a single dictionary
- iskeyinput(key: str)[source]¶
returns True if the key is an input to the control system and False if it is an output
- Parameters:
key (str) – string of the input or output name
- Returns:
is the name an input or output name. true if input, false if output, none if not a valid name
- Return type:
boolean
- listinputs(iod, values=False)[source]¶
returns a list of the inputs to the control system either their names or their values
- listoutputs(iod, values=False)[source]¶
returns a list of the outputs to the control system either their names or their values
- removeIodIndices(iod, inputs_to_remove, outputs_to_remove)[source]¶
Take an iod and remove the inputs and outputs specified by the indices and or names provided in the inputs_to_remove and outputs_to_remove lists
- Parameters:
- Returns:
Input/output dictionary with the removed inputs and outputs
- Return type: