<commit_before><commit_msg>Added a jump process example.<commit_after>import numpy as np
import pyh5md

# Open a H5MD file
f = pyh5md.H5MD_File('poc.h5', 'w', creator='pyh5md examples/jump_process.py', creator_version='0', author='<NAME>')

# Add a trajectory group
part = f.trajectory('particles')

# Create the trajectory data
r = np.zeros((10,1), dtype=np.int32)

# Add the trajectory position data element in the trajectory group
part_pos = part.data('position', r.shape, r.dtype)

# Run a simulation
step=0
time=0.
for i in range(100):
    step+=1
    time+=1
    r += np.random.random_integers(-1,1,r.shape)
    # Append the current position data to the H5MD file.
    part_pos.append(r, step, time)

# Close the file
f.f.close()
{'fraction_non_alphanumeric': 0.1306122448979592, 'fraction_numerical': 0.029931972789115645, 'mean_word_length': 4.451851851851852, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4110484', 'n_tokens_mistral': 270, 'n_tokens_neox': 262, 'n_words': 77}