Return negative of a pore diameter. (optimisation function).

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