zombie-squirrel 0.5.0__py3-none-any.whl → 0.5.1__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 +1 -1
- zombie_squirrel/squirrels.py +6 -2
- {zombie_squirrel-0.5.0.dist-info → zombie_squirrel-0.5.1.dist-info}/METADATA +1 -1
- zombie_squirrel-0.5.1.dist-info/RECORD +10 -0
- zombie_squirrel-0.5.0.dist-info/RECORD +0 -10
- {zombie_squirrel-0.5.0.dist-info → zombie_squirrel-0.5.1.dist-info}/WHEEL +0 -0
- {zombie_squirrel-0.5.0.dist-info → zombie_squirrel-0.5.1.dist-info}/licenses/LICENSE +0 -0
- {zombie_squirrel-0.5.0.dist-info → zombie_squirrel-0.5.1.dist-info}/top_level.txt +0 -0
zombie_squirrel/__init__.py
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Provides functions to fetch and cache project names, subject IDs, and asset
|
|
4
4
|
metadata from the AIND metadata database with support for multiple backends."""
|
|
5
5
|
|
|
6
|
-
__version__ = "0.5.
|
|
6
|
+
__version__ = "0.5.1"
|
|
7
7
|
|
|
8
8
|
from zombie_squirrel.squirrels import ( # noqa: F401
|
|
9
9
|
asset_basics,
|
zombie_squirrel/squirrels.py
CHANGED
|
@@ -205,8 +205,10 @@ def asset_basics(force_update: bool = False) -> pd.DataFrame:
|
|
|
205
205
|
modality_abbreviations_str = ", ".join(modality_abbreviations)
|
|
206
206
|
|
|
207
207
|
# Get the process date, convert to YYYY-MM-DD if present
|
|
208
|
-
|
|
209
|
-
if
|
|
208
|
+
data_processes = record.get("processing", {}).get("data_processes", [])
|
|
209
|
+
if data_processes:
|
|
210
|
+
latest_process = data_processes[-1]
|
|
211
|
+
process_datetime = latest_process.get("start_date_time", None)
|
|
210
212
|
process_date = process_datetime.split("T")[0]
|
|
211
213
|
else:
|
|
212
214
|
process_date = None
|
|
@@ -317,6 +319,8 @@ def raw_to_derived(force_update: bool = False) -> pd.DataFrame:
|
|
|
317
319
|
raw_to_derived_map = {raw_id: [] for raw_id in raw_ids}
|
|
318
320
|
for derived_record in derived_records:
|
|
319
321
|
source_data_list = derived_record.get("data_description", {}).get("source_data", [])
|
|
322
|
+
if not source_data_list:
|
|
323
|
+
continue
|
|
320
324
|
derived_id = derived_record["_id"]
|
|
321
325
|
# Add this derived record to each raw record it depends on
|
|
322
326
|
for source_id in source_data_list:
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
zombie_squirrel/__init__.py,sha256=ihoDdnYVX9vzrIOTRGU1EFj_vGu_6OgJHeOC_6bVyLQ,409
|
|
2
|
+
zombie_squirrel/acorns.py,sha256=4uBzYtYgW2oD5sOohNQUw4qfjmNjmAIK2RlL1Ge1Udo,2597
|
|
3
|
+
zombie_squirrel/squirrels.py,sha256=xFGckcm4hcmFVxQneqeloSZjoY6Qc2wvHT9Wws9L-Rk,12088
|
|
4
|
+
zombie_squirrel/sync.py,sha256=84Ta5beHiPuGBVzp9SCo7G1b4McTUohcUIf_TJbNIV8,518
|
|
5
|
+
zombie_squirrel/utils.py,sha256=woPxU4vYMUv-T0XOjV5ieViksU_q7It_n_5Ll4zpocA,289
|
|
6
|
+
zombie_squirrel-0.5.1.dist-info/licenses/LICENSE,sha256=U0Y7B3gZJHXpjJVLgTQjM8e_c8w4JJpLgGhIdsoFR1Y,1092
|
|
7
|
+
zombie_squirrel-0.5.1.dist-info/METADATA,sha256=CgLCs4WxISN0rMMXSCw0H-E90W8V87bXErZbRbZ26XU,1902
|
|
8
|
+
zombie_squirrel-0.5.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
9
|
+
zombie_squirrel-0.5.1.dist-info/top_level.txt,sha256=FmM0coe4AangURZLjM4JwwRv2B8H6oINYCoZLKLDCKA,16
|
|
10
|
+
zombie_squirrel-0.5.1.dist-info/RECORD,,
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
zombie_squirrel/__init__.py,sha256=4zjJN8AP-RKQir_Wgvy0KqVUcV2REOE9kTHwrMyRV5U,409
|
|
2
|
-
zombie_squirrel/acorns.py,sha256=4uBzYtYgW2oD5sOohNQUw4qfjmNjmAIK2RlL1Ge1Udo,2597
|
|
3
|
-
zombie_squirrel/squirrels.py,sha256=BjRF7MhSJMK4BsBhHU5PzAdG6Rb7OloTMXUvrA7pZT8,11934
|
|
4
|
-
zombie_squirrel/sync.py,sha256=84Ta5beHiPuGBVzp9SCo7G1b4McTUohcUIf_TJbNIV8,518
|
|
5
|
-
zombie_squirrel/utils.py,sha256=woPxU4vYMUv-T0XOjV5ieViksU_q7It_n_5Ll4zpocA,289
|
|
6
|
-
zombie_squirrel-0.5.0.dist-info/licenses/LICENSE,sha256=U0Y7B3gZJHXpjJVLgTQjM8e_c8w4JJpLgGhIdsoFR1Y,1092
|
|
7
|
-
zombie_squirrel-0.5.0.dist-info/METADATA,sha256=WDnQXat1d6eC1-RkESW5yZ1lmu8vaHPYEM87SvBuB1g,1902
|
|
8
|
-
zombie_squirrel-0.5.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
9
|
-
zombie_squirrel-0.5.0.dist-info/top_level.txt,sha256=FmM0coe4AangURZLjM4JwwRv2B8H6oINYCoZLKLDCKA,16
|
|
10
|
-
zombie_squirrel-0.5.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|