From 813f1352eb825976d8723d43a0c731cc61ad9dfd Mon Sep 17 00:00:00 2001 From: BZ-BowenZhang Date: Thu, 9 May 2024 12:48:24 +0100 Subject: [PATCH] Fix the typo from 'ranmdom' to 'random' as it preventing run the scripts --- scripts/1_prep_synthpop.py | 2 +- scripts/2.1_sandbox-match_households.py | 2 +- scripts/2_match_households_and_individuals.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/1_prep_synthpop.py b/scripts/1_prep_synthpop.py index ca4e3130..aa06d277 100644 --- a/scripts/1_prep_synthpop.py +++ b/scripts/1_prep_synthpop.py @@ -6,7 +6,7 @@ def main(): # Seed RNG - np.ranmdom.seed(SEED) + np.random.seed(SEED) # Pick a region with SPC output saved path = "../data/external/spc_output/raw/" diff --git a/scripts/2.1_sandbox-match_households.py b/scripts/2.1_sandbox-match_households.py index f11cf1aa..cc53238c 100644 --- a/scripts/2.1_sandbox-match_households.py +++ b/scripts/2.1_sandbox-match_households.py @@ -17,7 +17,7 @@ # Seed RNG SEED = 0 -np.ranmdom.seed(SEED) +np.random.seed(SEED) # ## Step 1: Load in the datasets diff --git a/scripts/2_match_households_and_individuals.py b/scripts/2_match_households_and_individuals.py index ddcea42f..018b8956 100644 --- a/scripts/2_match_households_and_individuals.py +++ b/scripts/2_match_households_and_individuals.py @@ -20,7 +20,7 @@ # Seed RNG SEED = 0 -np.ranmdom.seed(SEED) +np.random.seed(SEED) pd.set_option("display.max_columns", None)