[Chimera-users] Contact_area Arguments

Kevin Wang kevinkw.wang at mail.utoronto.ca
Fri Dec 6 15:30:10 PST 2019


I am using python to calculate contact area between 2 chains. My code is as follows

p1, p2 = [s.surface_piece for s in openModels.list(modelTypes=[MSMSModel])]
y = measure.contact_area(p1, p2, 2.5)

However, this returns the error: TypeError: contact_area() takes at least 4 arguments (3 given)

This is the function for contact_area

def contact_area(p1, p2, d, color = None, offset = None, slab = None, smooth = False, optimize = True):

What is the 4th required argument?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://plato.cgl.ucsf.edu/pipermail/chimera-users/attachments/20191206/b4b3bf36/attachment-0001.html>

More information about the Chimera-users mailing list