Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return snap
if __name__ == '__main__':
parser = argparse.ArgumentParser(
description='Convert HOOMD-blue XML file to GSD.')
parser.add_argument('input', type=str, nargs=1,
help='Input file')
parser.add_argument('output', type=str, nargs=1,
help='Output file')
args = parser.parse_args()
print('Reading input file...')
snap = read_xml(args.input[0])
print('Writing output file...')
gsd.hoomd.create(args.output[0], snap)