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}"