本文整理匯總了Python中Biskit.Executor.cleanup方法的典型用法代碼示例。如果您正苦於以下問題:Python Executor.cleanup方法的具體用法?Python Executor.cleanup怎麽用?Python Executor.cleanup使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Biskit.Executor
的用法示例。
在下文中一共展示了Executor.cleanup方法的10個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: cleanup
# 需要導入模塊: from Biskit import Executor [as 別名]
# 或者: from Biskit.Executor import cleanup [as 別名]
def cleanup( self ):
Executor.cleanup( self )
if not self.debug:
T.tryRemove( self.prosaPdbFile )
T.tryRemove( self.f_in)
T.tryRemove( self.prosaOutput + '.ana' )
示例2: cleanup
# 需要導入模塊: from Biskit import Executor [as 別名]
# 或者: from Biskit.Executor import cleanup [as 別名]
def cleanup( self ):
"""
Tidy up the mess you created.
"""
Executor.cleanup( self )
if not self.debug:
T.tryRemove( self.f_pdb )
示例3: cleanup
# 需要導入模塊: from Biskit import Executor [as 別名]
# 或者: from Biskit.Executor import cleanup [as 別名]
def cleanup(self):
"""
remove temporary files
"""
Executor.cleanup( self )
if not self.debug:
T.tryRemove( self.inp1 )
T.tryRemove( self.inp2 )
示例4: cleanup
# 需要導入模塊: from Biskit import Executor [as 別名]
# 或者: from Biskit.Executor import cleanup [as 別名]
def cleanup( self ):
"""
Remove temp files.
"""
Executor.cleanup( self )
if not self.debug:
T.tryRemove( self.f_xyzrn )
T.tryRemove( self.f_surf + '.area' )
示例5: cleanup
# 需要導入模塊: from Biskit import Executor [as 別名]
# 或者: from Biskit.Executor import cleanup [as 別名]
def cleanup( self ):
"""
Tidy up the mess you created.
Does nothing. No temporary files are created.
"""
Executor.cleanup( self )
if not self.debug:
T.tryRemove( self.f_pdbin )
T.tryRemove( self.f_out)
示例6: cleanup
# 需要導入模塊: from Biskit import Executor [as 別名]
# 或者: from Biskit.Executor import cleanup [as 別名]
def cleanup( self ):
"""
Tidy up the mess we created. Called after program execution.
"""
Executor.cleanup( self )
if not self.debug:
## remove all files created by intervor
for f in glob.glob( self.f_prefix + '*' ):
T.tryRemove( f )
示例7: cleanup
# 需要導入模塊: from Biskit import Executor [as 別名]
# 或者: from Biskit.Executor import cleanup [as 別名]
def cleanup( self ):
"""
Tidy up the mess you created.
"""
Executor.cleanup( self )
if not self.debug:
T.tryRemove( self.f_ref )
for i in range( len(self.models)):
T.tryRemove( self.f_pdb % i )
示例8: cleanup
# 需要導入模塊: from Biskit import Executor [as 別名]
# 或者: from Biskit.Executor import cleanup [as 別名]
def cleanup( self ):
"""
Tidy up the mess you created.
"""
Executor.cleanup( self )
if not self.debug:
T.tryRemove( self.f_pdb, verbose=self.verbose )
T.tryRemove( self.f_out_name, verbose=self.verbose )
T.tryRemove( os.path.join(self.cwd, 'result.txt'),
verbose=self.verbose )
T.tryRemove( self.f_pdb[:-4]+'_residue.txt', verbose=self.verbose)
示例9: cleanup
# 需要導入模塊: from Biskit import Executor [as 別名]
# 或者: from Biskit.Executor import cleanup [as 別名]
def cleanup( self ):
"""
Tidy up the mess you created.
"""
Executor.cleanup( self )
if not self.debug:
T.tryRemove( self.f_pdb )
T.tryRemove( self.f_relativeASA )
T.tryRemove( self.f_residueASA )
T.tryRemove('FOR???.DAT', wildcard=1)
T.tryRemove('pdbout.tex')
T.tryRemove('pdbout.txt')
T.tryRemove('TEXSTORE.DAT')
T.tryRemove('TEXTABLE.DAT')
示例10: cleanup
# 需要導入模塊: from Biskit import Executor [as 別名]
# 或者: from Biskit.Executor import cleanup [as 別名]
def cleanup( self ):
"""
Remove files created for and by the calculation.
"""
Executor.cleanup( self )
if not self.debug:
T.tryRemove( self.temp_pdb )
T.tryRemove( self.temp_command )
T.tryRemove( self.temp_option )
T.tryRemove( self.temp_result )
T.tryRemove( self.temp_runlog )
T.tryRemove( self.temp_errlog )
## Fold-X writes a file called "runlog.txt"
## to local directory. Try to remove it.
T.tryRemove( 'runlog.txt' )
## and even though the error log is supposed
## to be written to self.temp_errlog, I get a
## 'errorfile.txt' in the local directory. Remove.
T.tryRemove( 'errorfile.txt' )