From a46ffdc2fc9f91cb6ac30c77d9ddfe89912f6c8a Mon Sep 17 00:00:00 2001 From: Chetan Mishra Date: Wed, 16 Oct 2024 17:06:12 -0400 Subject: [PATCH] remove default data dirs (#121) Co-authored-by: chetan --- esm/utils/constants/esm3.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/esm/utils/constants/esm3.py b/esm/utils/constants/esm3.py index 131f975..dd6ebee 100644 --- a/esm/utils/constants/esm3.py +++ b/esm/utils/constants/esm3.py @@ -98,13 +98,6 @@ TFIDF_VECTOR_SIZE = 58641 @staticmethod @cache def data_root(): - # Try a few default directories - for path in [ - "esm/data", - "esm/data", - ]: - if (p := Path(path)).exists(): - return p.parent if "INFRA_PROVIDER" in os.environ: return Path("") # Try to download from hugginface if it doesn't exist