How to use the gsd.libgsd.gsd_find_chunk 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 / test / benchmark_gsd.py View on Github external
def read_frame(file, frame, position, orientation):
    pos_chunk = gsd.libgsd.gsd_find_chunk(file, frame, "position");
    gsd.libgsd.gsd_read_chunk(file, position, pos_chunk);

    orientation_chunk = gsd.libgsd.gsd_find_chunk(file, frame, "orientation");
    gsd.libgsd.gsd_read_chunk(file, orientation, orientation_chunk);
github glotzerlab / gsd / test / benchmark_gsd.py View on Github external
def read_frame(file, frame, position, orientation):
    pos_chunk = gsd.libgsd.gsd_find_chunk(file, frame, "position");
    gsd.libgsd.gsd_read_chunk(file, position, pos_chunk);

    orientation_chunk = gsd.libgsd.gsd_find_chunk(file, frame, "orientation");
    gsd.libgsd.gsd_read_chunk(file, orientation, orientation_chunk);