Exemple #1
0
    def main(self):
        (options, args) = self.par()
        input_name = options.input_name

        sysopts = {"verbose": self.verbose, "debug": self.debug}

        input_file = LX(input_name, "OUTCAR", sysopts)
        input_file.build()
        input_file.process()
Exemple #2
0
  def main( self ):
    (opts, args) = self.parse()

    sysopts = { "verbose" : self.verbose, "debug" : self.debug }
    try:
      inp = LX( opts.input, 'OUTCAR', sysopts )
      inp.build()
      inp.process()
    except:
      if self.debug:
        raise
      else:
        print "Input failed:", opts.input
        sys.exit(1)