From 034012cf30a61c3de7a9b88611cf4866ad7529d0 Mon Sep 17 00:00:00 2001 From: David Robert Verelst <dave@dtu.dk> Date: Wed, 14 Jun 2017 08:45:48 +0200 Subject: [PATCH] write_master: remove redundant return statement, docstring conventions --- wetb/prepost/write_master.py | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/wetb/prepost/write_master.py b/wetb/prepost/write_master.py index 57e617ae..94a2a6cc 100644 --- a/wetb/prepost/write_master.py +++ b/wetb/prepost/write_master.py @@ -29,16 +29,26 @@ import numpy as np import os import pandas as pd + def write_master(path_to_texts, excel_name='DLCs.xlsx', file_end='.txt', delimiter='\t'): """ Write a master Excel sheet from a series of text files - Args: - path_to_texts (str): path to directory with text files - excel_name (str): filename of generated master Excel file - file_end (str): file ending of text files - delimiter (str): column delimiter in text files + Parameters + ---------- + + path_to_texts : str + path to directory with text files + + excel_name : str + filename of generated master Excel file + + file_end : str + file ending of text files + + delimiter : str + column delimiter in text files """ # formatting for header cells @@ -96,7 +106,6 @@ def write_master(path_to_texts, # save worksheet writer.save() - return if __name__ == '__main__': -- GitLab