zombie-squirrel 0.2.1__py3-none-any.whl → 0.2.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- zombie_squirrel/__init__.py +5 -2
- zombie_squirrel/acorns.py +1 -0
- zombie_squirrel/squirrels.py +3 -2
- {zombie_squirrel-0.2.1.dist-info → zombie_squirrel-0.2.3.dist-info}/METADATA +1 -1
- zombie_squirrel-0.2.3.dist-info/RECORD +10 -0
- zombie_squirrel-0.2.1.dist-info/RECORD +0 -10
- {zombie_squirrel-0.2.1.dist-info → zombie_squirrel-0.2.3.dist-info}/WHEEL +0 -0
- {zombie_squirrel-0.2.1.dist-info → zombie_squirrel-0.2.3.dist-info}/licenses/LICENSE +0 -0
- {zombie_squirrel-0.2.1.dist-info → zombie_squirrel-0.2.3.dist-info}/top_level.txt +0 -0
zombie_squirrel/__init__.py
CHANGED
zombie_squirrel/acorns.py
CHANGED
|
@@ -61,6 +61,7 @@ class MemoryAcorn(Acorn):
|
|
|
61
61
|
def rds_get_handle_empty(acorn: Acorn, table_name: str) -> pd.DataFrame:
|
|
62
62
|
"""Utility function for testing purposes."""
|
|
63
63
|
try:
|
|
64
|
+
logging.info(f"Fetching from cache: {table_name}")
|
|
64
65
|
df = acorn.scurry(table_name)
|
|
65
66
|
except Exception as e:
|
|
66
67
|
logging.warning(f"Error fetching from cache: {e}")
|
zombie_squirrel/squirrels.py
CHANGED
|
@@ -35,8 +35,8 @@ def register_squirrel(name: str):
|
|
|
35
35
|
# --- Squirrels -----------------------------------------------------
|
|
36
36
|
|
|
37
37
|
NAMES = {
|
|
38
|
-
"upn": "
|
|
39
|
-
"usi": "
|
|
38
|
+
"upn": "unique_project_names",
|
|
39
|
+
"usi": "unique_subject_ids",
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
|
|
@@ -69,6 +69,7 @@ def unique_subject_ids(force_update: bool = False) -> list[str]:
|
|
|
69
69
|
|
|
70
70
|
if df.empty or force_update:
|
|
71
71
|
# If cache is missing, fetch data
|
|
72
|
+
logging.info("Updating cache for unique subject IDs")
|
|
72
73
|
client = MetadataDbClient(
|
|
73
74
|
host=API_GATEWAY_HOST,
|
|
74
75
|
version="v2",
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
zombie_squirrel/__init__.py,sha256=i7J51pQP-ID_TrBZtNQmxjgzlqJ8WGQIObfHAzospx8,134
|
|
2
|
+
zombie_squirrel/acorns.py,sha256=MZaScwDpnuuGnrx8a1vRmfv5-fr6h4Idw1_rQ2FWdB0,2132
|
|
3
|
+
zombie_squirrel/squirrels.py,sha256=3ybJQpuNsoM8gBkHSWOKBZ_zOfsnzq35TKh0Aig2voc,2662
|
|
4
|
+
zombie_squirrel/sync.py,sha256=jslTVIend5Z-sLJuNXKkhn-nqmKK_P0FAiRuFFYRnto,168
|
|
5
|
+
zombie_squirrel/utils.py,sha256=74DSFK1Qbp8yQeUXpnli4kqx_QcAc8v4_6FZut0xZ8g,103
|
|
6
|
+
zombie_squirrel-0.2.3.dist-info/licenses/LICENSE,sha256=U0Y7B3gZJHXpjJVLgTQjM8e_c8w4JJpLgGhIdsoFR1Y,1092
|
|
7
|
+
zombie_squirrel-0.2.3.dist-info/METADATA,sha256=o82tnKDGfBAcDwt3fiSpF14octxGxKym5BmluyTyTg0,1382
|
|
8
|
+
zombie_squirrel-0.2.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
9
|
+
zombie_squirrel-0.2.3.dist-info/top_level.txt,sha256=FmM0coe4AangURZLjM4JwwRv2B8H6oINYCoZLKLDCKA,16
|
|
10
|
+
zombie_squirrel-0.2.3.dist-info/RECORD,,
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
zombie_squirrel/__init__.py,sha256=BKo2OO2fNRtDUwp3C4OzfTmx-LNfTSQWFFvUpjc6zg4,100
|
|
2
|
-
zombie_squirrel/acorns.py,sha256=IMgsvOBCi7-ghbYN4AkeP09JVPuXsXnyogAFQJEf7vo,2073
|
|
3
|
-
zombie_squirrel/squirrels.py,sha256=z0xqsaEXgdpuI9uGJ5OD43FXX8dgVaSTwqly-O8-sEM,2600
|
|
4
|
-
zombie_squirrel/sync.py,sha256=jslTVIend5Z-sLJuNXKkhn-nqmKK_P0FAiRuFFYRnto,168
|
|
5
|
-
zombie_squirrel/utils.py,sha256=74DSFK1Qbp8yQeUXpnli4kqx_QcAc8v4_6FZut0xZ8g,103
|
|
6
|
-
zombie_squirrel-0.2.1.dist-info/licenses/LICENSE,sha256=U0Y7B3gZJHXpjJVLgTQjM8e_c8w4JJpLgGhIdsoFR1Y,1092
|
|
7
|
-
zombie_squirrel-0.2.1.dist-info/METADATA,sha256=oF9a5lwgVSuOoLdyoydjmuu98R3pQXeeXsKbcuU8Ng0,1382
|
|
8
|
-
zombie_squirrel-0.2.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
9
|
-
zombie_squirrel-0.2.1.dist-info/top_level.txt,sha256=FmM0coe4AangURZLjM4JwwRv2B8H6oINYCoZLKLDCKA,16
|
|
10
|
-
zombie_squirrel-0.2.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|