def stamp_iter_range(h5object, start_iter, stop_iter):
    """Mark that the HDF5 object ``h5object`` (dataset or group) contains data from iterations
    start_iter <= n_iter < stop_iter."""
    h5object.attrs['iter_start'] = start_iter
    h5object.attrs['iter_stop'] = stop_iter
