def correct_pore_diameter(com, *params):
elements, coordinates = params<EOL>return (-pore_diameter(elements, coordinates, com)[<NUM_LIT:0>])<EOL>
Return negative of a pore diameter. (optimisation function).