[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[modeller_usage] Physical.values



In the modeller.physical module, is there a way to select to select the physical types given the index? Something like:

 

>> import modeller

>> print modeller.physical.types[1]

physical.bond

 

I see that each modeller.physical.<restraint type> has a _num method which returns the index, but I’d like to avoid looping through all the object types if possible!

 

Cheers,

Chris

 

-------------------

Dr Chris Wood

STFC Rutherford Appleton Laboratory

Didcot

OX11 0QX

 


www.ccpem.ac.uk


Tel: +44(0)1235 567864

Tel: +44(0)7909 586624
Fax: +44(0)1235 567801

 

Skype: chris_c_wood

 


--
Scanned by iCritical.