"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "modules/pymol/querying.py" between
pymol-v1.8.6.0.tar.bz2 and pymol-v2.1.0.tar.bz2

About: PyMOL is a Python-enhanced molecular graphics tool. It excels at 3D visualization of proteins, small molecules, density, surfaces, and trajectories. It also includes molecular editing, ray tracing, and movies. Open Source version.

querying.py  (pymol-v1.8.6.0.tar.bz2):querying.py  (pymol-v2.1.0.tar.bz2)
skipping to change at line 146 skipping to change at line 146
if not quiet: if not quiet:
if r is None: if r is None:
print('TTT is None') print('TTT is None')
else: else:
for i in range(4): for i in range(4):
if i == 3: if i == 3:
print('TTT ---------------------------+---------') print('TTT ---------------------------+---------')
print('TTT %8.2f %8.2f %8.2f | %8.2f' % tuple(r[i * 4:i * 4 + 4])) print('TTT %8.2f %8.2f %8.2f | %8.2f' % tuple(r[i * 4:i * 4 + 4]))
return r return r
def get_object_settings(object, state=0, quiet=1, _self=cmd):
'''
DESCRIPTION
"get_object_settings" is an unsupported command
'''
with _self.lockcm:
r = _cmd.get_object_settings(_self._COb, str(object), int(state) - 1
)
return r
def get_object_list(selection="(all)", quiet=1, _self=cmd): def get_object_list(selection="(all)", quiet=1, _self=cmd):
''' '''
DESCRIPTION DESCRIPTION
"get_object_list" is an unsupported command that may have "get_object_list" is an unsupported command that may have
something to do with querying the objects covered by a selection. something to do with querying the objects covered by a selection.
''' '''
r = DEFAULT_ERROR r = DEFAULT_ERROR
skipping to change at line 1139 skipping to change at line 1149
try: try:
_self.lock(_self) _self.lock(_self)
r = _cmd.get_model(_self._COb,"("+str(selection)+")",int(state)-1,st r(ref),int(ref_state)-1) r = _cmd.get_model(_self._COb,"("+str(selection)+")",int(state)-1,st r(ref),int(ref_state)-1)
if r==None: if r==None:
r = DEFAULT_ERROR r = DEFAULT_ERROR
finally: finally:
_self.unlock(r,_self) _self.unlock(r,_self)
if _raising(r,_self): raise pymol.CmdException if _raising(r,_self): raise pymol.CmdException
return r return r
def get_bonds(selection="(all)", state=-1, _self=cmd):
'''
DESCRIPTION
Get a list of (atm1, atm2, order) tuples.
SEE ALSO
cmd.get_model().bond
'''
with _self.lockcm:
r = _cmd.get_bonds(_self._COb, selection, int(state))
return r
def get_area(selection="(all)",state=1,load_b=0,quiet=1,_self=cmd): def get_area(selection="(all)",state=1,load_b=0,quiet=1,_self=cmd):
''' '''
DESCRIPTION DESCRIPTION
Get the surface area of an selection. Depends on the "dot_solvent" Get the surface area of an selection. Depends on the "dot_solvent"
setting. With "dot_solvent=off" (default) it calculates the solvent setting. With "dot_solvent=off" (default) it calculates the solvent
excluded surface area, else the surface accessible surface. excluded surface area, else the surface accessible surface.
USAGE USAGE
 End of changes. 2 change blocks. 
0 lines changed or deleted 25 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)