def run_id(self): if "--run" in self.d_arguments: run_id = self.d_arguments["--run"] else: l = [arguments[i] for i in ["--method", "--basis", "--geo", "--comment"]] run_id = add_or_get_run(*l) return run_id
def run_id(self): if "--run_id" in self.d_arguments: run_id = self.d_arguments["--run_id"] else: l = [ arguments[i] for i in ["--method", "--basis", "--geo", "--comment"] ] run_id = add_or_get_run(*l) return run_id
def run_id_pt2(self): l = get_run_info(self.run_id) l[-1] += " (+PT2)" run_id = add_or_get_run(*l) return run_id
raise print "File in misc is corupted. Git reset may cure the diseases" sys.exit(1) if __name__ == '__main__': arguments = docopt(__doc__, version='G2 Api ' + version) if arguments["--run_id"]: run_id = arguments["--run_id"] else: l = [arguments[i] for i in ["--method", "--basis", "--geo", "--comment"]] run_id = add_or_get_run(*l) print run_id, with open(arguments["--path"], "r") as f: data = [line for line in f.read().split("\n") if line] for line in data: list_ = line.split("#")[0].split() try: list_[0] except IndexError: continue
raise print "File in misc is corupted. Git reset may cure the diseases" sys.exit(1) if __name__ == '__main__': arguments = docopt(__doc__, version='G2 Api ' + version) if arguments["--run_id"]: run_id = arguments["--run_id"] else: l = [ arguments[i] for i in ["--method", "--basis", "--geo", "--comment"] ] run_id = add_or_get_run(*l) print run_id, with open(arguments["--path"], "r") as f: data = [line for line in f.read().split("\n") if line] for line in data: list_ = line.split("#")[0].split() try: list_[0] except IndexError: continue