How to use the gsd.libgsd.gsd_write_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 write_frame(file, frame, position, orientation):
    gsd.libgsd.gsd_write_chunk(file, "position", 3, position.shape[0], position.shape[1], frame, position);
    gsd.libgsd.gsd_write_chunk(file, "orientation", 3, orientation.shape[0], orientation.shape[1], frame, orientation);
    gsd.libgsd.gsd_end_frame(file);
github glotzerlab / gsd / test / benchmark_gsd.py View on Github external
def write_frame(file, frame, position, orientation):
    gsd.libgsd.gsd_write_chunk(file, "position", 3, position.shape[0], position.shape[1], frame, position);
    gsd.libgsd.gsd_write_chunk(file, "orientation", 3, orientation.shape[0], orientation.shape[1], frame, orientation);
    gsd.libgsd.gsd_end_frame(file);