From d86e23f68930e13ec6f653a3af7b8e2fdfaa591b Mon Sep 17 00:00:00 2001 From: Jayaram Kancherla Date: Fri, 4 Oct 2024 10:51:24 -0700 Subject: [PATCH] fix multiline warnings --- src/cellarr/build_cellarrdataset.py | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/cellarr/build_cellarrdataset.py b/src/cellarr/build_cellarrdataset.py index 201c177..50c14f3 100644 --- a/src/cellarr/build_cellarrdataset.py +++ b/src/cellarr/build_cellarrdataset.py @@ -220,8 +220,10 @@ def build_cellarrdataset( #### if gene_annotation is None: warnings.warn( - "Scanning all files for feature ids (e.g. gene symbols) and cell annotations, this may take long, ", - "Please also make sure you have enough memory.", + ( + "Scanning all files for feature ids (e.g. gene symbols) and cell annotations, this may take long, ", + "Please also make sure you have enough memory.", + ), UserWarning, ) @@ -375,9 +377,11 @@ def build_cellarrdataset( ) warnings.warn( - "'cell_metadata' csv file is expected to contain mapping between cells and samples", - "especially 'cellarr_sample' (which sample the cell comes from) and ", - "'cellarr_cell_index_in_sample' (index of the cell within the sample) columns.", + ( + "'cell_metadata' csv file is expected to contain mapping between cells and samples", + "especially 'cellarr_sample' (which sample the cell comes from) and ", + "'cellarr_cell_index_in_sample' (index of the cell within the sample) columns.", + ), UserWarning, ) elif isinstance(cell_metadata, pd.DataFrame):