Error with the maximum size of the supercell, should now be provided as input to get_smallest_supercell