From 4ec87f8bdb650be33d239694e531896780526565 Mon Sep 17 00:00:00 2001 From: Wenjie Du Date: Sat, 2 Dec 2023 18:02:15 +0800 Subject: [PATCH] feat: fix random seed for testing; --- tests/global_test_config.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/global_test_config.py b/tests/global_test_config.py index c0d8afdb..3258ab6d 100644 --- a/tests/global_test_config.py +++ b/tests/global_test_config.py @@ -11,6 +11,9 @@ from pypots.data.generating import gene_random_walk from pypots.utils.logging import logger +from pypots.utils.random import set_random_seed + +set_random_seed(2023) # Generate the unified data for testing and cache it first, DATA here is a singleton # Otherwise, file lock will cause bug if running test parallely with pytest-xdist.