write\_file =========== .. currentmodule:: pypillometry .. autofunction:: write_file