obspy.io.rg16.util._open_file

_open_file(func, *args, **kwargs)[source]

Ensure a file buffer is passed as first argument to the decorated function.

Parameters:func callable that takes at least one argument; the first argument must be treated as a buffer.
Returns:callable