Description
I noticed a potential inefficiency at the end of the run method in
|
outputs_tuple = namedtupledict('Outputs', output_names)(*outputs) |
|
return namedtupledict('Outputs', output_names)(*outputs) |
The namedtupledict
function is called twice back-to-back with the exact same arguments.
The method then immediately calls the same function again for the return statement.
//As-is
outputs_tuple = namedtupledict('Outputs', output_names)(*outputs)
return namedtupledict('Outputs', output_names)(*outputs)
//To-be
return namedtupledict('Outputs', output_names)(*outputs)