How to use the gsd.hoomd.create function in gsd

To help you get started, we’ve selected a few gsd examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github glotzerlab / gsd / scripts / hoomdxml2gsd.py View on Github external
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)