def main(): parser = argparse.ArgumentParser(description='Update database for energy shifts in EuO and substrate') parser.add_argument('folders', type=str, nargs='+', help='Folders containing results of isolated material runs') parser.add_argument('-d', '--database', type=str, help='Database file name', default='isodelta.dat') args = parser.parse_args() t=isodelta.database() t.extract(args.folders) t.write(args.database)
def main(): parser = argparse.ArgumentParser(description='Update database for energy shifts in EuO and substrate') parser.add_argument('-d', '--database', type=str, help='Database file name', default='isodelta.dat') parser.add_argument('-n', '--N', type=int, help='Number of EuO layers', default=1) parser.add_argument('-m', '--N0', type=int, help='Number of Substrate layers', default=0) parser.add_argument('-o', '--output', type=str, help='Output folder') args = parser.parse_args() print args t=isodelta.database() t.read(args.database)