# util - Miscellaneous functions¶

 merge_ends join the leading and trailing ends of the profile together so fewer
refl1d.util.merge_ends(w, p, tol=0.001)[source]

join the leading and trailing ends of the profile together so fewer slabs are required and so that gaussian roughness can be used.