From 64d2cef9171c2268e24a8a41380a56335fb244dd Mon Sep 17 00:00:00 2001 From: Jaclyn Beck Date: Wed, 18 Dec 2024 15:19:31 -0800 Subject: [PATCH] Fixed type hinting in preprocessing_utils.py --- .../agora/notebooks/preprocessing/preprocessing_utils.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/data_analysis/agora/notebooks/preprocessing/preprocessing_utils.py b/data_analysis/agora/notebooks/preprocessing/preprocessing_utils.py index 243d7e56..106867f4 100644 --- a/data_analysis/agora/notebooks/preprocessing/preprocessing_utils.py +++ b/data_analysis/agora/notebooks/preprocessing/preprocessing_utils.py @@ -338,7 +338,7 @@ def _extract_ensembl_ids( def load_file_with_name( file_name: str, config_filename: str, token: str = None -) -> pd.DataFrame: +) -> Union[pd.DataFrame, None]: """ Loops through a config file, finds the input file config that matches file_name, and downloads and reads the file in as a pandas data frame. @@ -350,7 +350,8 @@ def load_file_with_name( token: optional, a Synapse auth token Returns: - a pandas.DataFrame, if a file matching file_name exists in the config, or None + a pandas.DataFrame, if a file matching file_name exists in the config, or + None, if no file spec with that name exists """ syn = utils._login_to_synapse(token=token) config = utils._get_config(config_path=config_filename)