From 02e5cd2016192ed22a0b4794bd5f4d30db1c2f1e Mon Sep 17 00:00:00 2001 From: Justin Hong Date: Fri, 27 Sep 2024 13:19:10 -0400 Subject: [PATCH] Fix warning for DA --- src/scvi/external/mrvi/_model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scvi/external/mrvi/_model.py b/src/scvi/external/mrvi/_model.py index a0d362018b..4f3dabfbc4 100644 --- a/src/scvi/external/mrvi/_model.py +++ b/src/scvi/external/mrvi/_model.py @@ -843,7 +843,7 @@ def differential_abundance( if n_cov_values > n_samples / 2: warnings.warn( f"The covariate '{key}' does not seem to refer to a discrete key. " - f"It has {len(n_cov_values)} unique values, which exceeds one half of the " + f"It has {n_cov_values} unique values, which exceeds one half of the " f"total samples ({n_samples}).", UserWarning, stacklevel=2,