File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ def __init__(
5252
5353 db_health = check_cache_health ("DataBaseChapters" )
5454 embedidngs_health = check_cache_health ("EmbeddingsChapters" )
55-
55+
5656 if db_health == False :
5757 cache .del_all_cache ("DataBaseChapters" )
5858 download_cache ("DataBaseChapters" )
@@ -92,4 +92,4 @@ def __init__(
9292 self .name = name
9393 self .subject_map = subject_map #dict
9494 self .chapters_dict = chapter_dict
95- self .state = "healthy"
95+ self .state = "healthy"
Original file line number Diff line number Diff line change @@ -22,8 +22,8 @@ def check_cache_health(data_name:str)->bool:
2222def download_cache (data_name :str )-> None :
2323 pattern = rf"\d*-{ data_name } -{ schema_version } .pkl"
2424 cache_file_dict = {
25- f"123-DataBaseChapters-v { schema_version } .pkl" :DATABASE_LINK ,
26- f"123-EmbeddingsChapters-v { schema_version } .pkl" :EMBEDDINGS_LINK
25+ f"123-DataBaseChapters-{ schema_version } .pkl" :DATABASE_LINK ,
26+ f"123-EmbeddingsChapters-{ schema_version } .pkl" :EMBEDDINGS_LINK
2727 }
2828 # for i in range(5):
2929 # try:
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44
55[project ]
66name = " jee_data_base"
7- version = " 0.1.5.post1 "
7+ version = " 0.1.5.post2 "
88description = " JEE Mains PYQS data base"
99authors = [{ name =" HostServer001" , email =" jarvisuserbot@gmail.com" }]
1010readme = " README.md"
Original file line number Diff line number Diff line change 22
33setup (
44 name = "jee_data_base" ,
5- version = "0.1.5.post1 " ,
5+ version = "0.1.5.post2 " ,
66 packages = find_packages (),
77 install_requires = [
88 "hdbscan" ,
Original file line number Diff line number Diff line change @@ -59,6 +59,7 @@ def test_full_pipeline():
5959 assert os .path .getsize (out ) > 10
6060
6161 with tempfile .TemporaryDirectory () as td :
62+ f .reset ()
6263 out = os .path .join (td ,"alcohols-phenols-and-ethers" )
6364 f .render_chap_last5yrs (td ,"alcohols-phenols-and-ethers" ,skim = False )
6465
You can’t perform that action at this time.
0 commit comments