Skip to content

Commit

Permalink
fix multiline warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jkanche committed Oct 4, 2024
1 parent b7ba255 commit d86e23f
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/cellarr/build_cellarrdataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)

Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit d86e23f

Please sign in to comment.