parameters: (self, Basename)
docstring: Write an Amber trajectory file
docstring_summary: Write an Amber trajectory file
docstring_tokens: Write an Amber trajectory file
function: def Write_trj(self, Basename):
          'Write an Amber trajectory file'
  
          import os, sys
  
          Filename = Basename + '.mdcrd'
  
          Dir_list = os.listdir('.')
          i = 1
          while Filename in Dir_list:
              Filename = Basename + `i` + '.mdcrd'
              i = i + 1
          del i
  
          print 'Writing', Filename + '...',
          sys.stdout.flush()
  
          try:
              F = open(Filename, 'w')
          except IOError, Detail:
              print '(error:', Detail[1] + '!)'
              return
  
          try:
              F.write(Basename + '\n')
          except IOError, Detail:
              print '(error:', Detail[1] + '!)'
              F.close()
              return
  
          for S in self.Snapshot_list:
              S.Write_trj(F)
  
          F.close()
          print 'done.'
function_tokens: def Write_trj ( self , Basename ) : import os , sys Filename = Basename + '.mdcrd' Dir_list = os . listdir ( '.' ) i = 1 while Filename in Dir_list : Filename = Basename + `i` + '.mdcrd' i = i + 1 del i print 'Writing' , Filename + '...' , sys . stdout . flush ( ) try : F = open ( Filename , 'w' ) except IOError , Detail : print '(error:' , Detail [ 1 ] + '!)' return try : F . write ( Basename + '\n' ) except IOError , Detail : print '(error:' , Detail [ 1 ] + '!)' F . close ( ) return for S in self . Snapshot_list : S . Write_trj ( F ) F . close ( ) print 'done.'