Skip to content
This repository was archived by the owner on Oct 21, 2025. It is now read-only.

Commit a775b72

Browse files
committed
Use good rand parameters for nb model in wald test_vsrest.py
1 parent 08482df commit a775b72

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

diffxpy/unit_test/test_vsrest.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,15 @@ def test_null_distribution_wald(self, n_cells: int = 2000, n_genes: int = 100, n
2424
logging.getLogger("batchglm").setLevel(logging.WARNING)
2525
logging.getLogger("diffxpy").setLevel(logging.WARNING)
2626
model = NBModel()
27+
rand_fn_loc = lambda shape: np.random.uniform(2, 5, shape)
28+
rand_fn_scale = lambda shape: np.random.uniform(1, 2, shape)
2729
model.generate_artificial_data(
2830
n_obs=n_cells,
2931
n_vars=n_genes,
3032
num_batches=0,
31-
num_conditions=0
33+
num_conditions=0,
34+
rand_fn_loc=rand_fn_loc,
35+
rand_fn_scale=rand_fn_scale
3236
)
3337

3438
random_sample_description = pd.DataFrame({

0 commit comments

Comments
 (0)