From 01d3db03bafea2a1463c53c32877b69d6001ead3 Mon Sep 17 00:00:00 2001 From: Maha Albashir Date: Mon, 30 Oct 2023 20:24:00 +0000 Subject: [PATCH] fixing pylint --- acro/acro_tables.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/acro/acro_tables.py b/acro/acro_tables.py index 86648ce..cabb0a3 100644 --- a/acro/acro_tables.py +++ b/acro/acro_tables.py @@ -518,7 +518,7 @@ def survival_plot( # pylint: disable=too-many-arguments,too-many-locals filename, extension = os.path.splitext(filename) if not extension: # pragma: no cover logger.info("Please provide a valid file extension") - return + return None increment_number = 0 while os.path.exists( f"acro_artifacts/{filename}_{increment_number}{extension}" @@ -633,7 +633,7 @@ def hist( # pylint: disable=too-many-arguments,too-many-locals "Calculating histogram for more than one columns is " "not currently supported. Please do each column separately." ) - return + return None freq, _ = np.histogram( # pylint: disable=too-many-function-args data[column], bins, range=(data[column].min(), data[column].max()) @@ -711,7 +711,7 @@ def hist( # pylint: disable=too-many-arguments,too-many-locals filename, extension = os.path.splitext(filename) if not extension: # pragma: no cover logger.info("Please provide a valid file extension") - return + return None increment_number = 0 while os.path.exists( f"acro_artifacts/{filename}_{increment_number}{extension}"