def with_open_store(func):
    doc = func.__doc__
    na_string = '''\nATTENTION: This function can only be used if the store is open!\n'''

    if doc is not None:
        func.__doc__ = '\n'.join([doc, na_string])
    func._with_open_store = True

    @functools.wraps(func)
    def new_func(self, *args, **kwargs):

        if not self.traj.v_storage_service.is_open:
            raise TypeError('Function `%s` is only available if the storage is open.' %
                            func.__name__)

        return func(self, *args, **kwargs)

    return new_func
Skip `n` rows, including the header row. E.g.::
dataset/ETHPy150Open SmokinCaterpillar/pypet/pypet/utils/decorators.py/with_open_store--crossover with--dataset/ETHPy150Open alimanfoo/petl/petl/transform/headers.py/skip