[Chimera-users] Contact_area Arguments

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


Never mind, I forgot to import the module

Best,
Kevin
________________________________
From: Kevin Wang
Sent: Friday, December 6, 2019 6:30 PM
To: chimera-users at cgl.ucsf.edu <chimera-users at cgl.ucsf.edu>
Subject: Contact_area Arguments

Hi,

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?

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


More information about the Chimera-users mailing list