pytuflow.ADCF.input#
- ADCF.input(uuid)#
Returns the input with the given UUID. UUIDs remain constant across build and run state conversions. If the input is not found in the control file, it will search through any child control files.
- Parameters:
uuid (str | UUID) – The UUID of the input to retrieve.
- Returns:
The input with the given UUID.
- Return type:
Input
- Raises:
KeyError – If no input with the given UUID is found in the control file or its child control files.
Examples
The example below finds an input and then checks if the input is still present after creating a run state instance of the control file.
>>> control_file = ... # Assume the control file has been loaded >>> code_inp = control_file.find_input('2d_code')[0] >>> run_control_file = control_file.context('-s1 EXG -s2 5m') >>> try: ... run_inp = run_control_file.input(code_inp.uuid) ... print(f'Input found: {run_inp}') ... except KeyError: ... print('Input not found in run state control file.')