zombie-squirrel 0.5.2__py3-none-any.whl → 0.6.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.
@@ -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.2"
6
+ __version__ = "0.6.1"
7
7
 
8
8
  from zombie_squirrel.squirrels import ( # noqa: F401
9
9
  asset_basics,
@@ -144,6 +144,7 @@ def asset_basics(force_update: bool = False) -> pd.DataFrame:
144
144
  "acquisition.acquisition_end_time",
145
145
  "processing.data_processes.start_date_time",
146
146
  "subject.subject_details.genotype",
147
+ "other_identifiers",
147
148
  "location",
148
149
  ]
149
150
 
@@ -159,6 +160,7 @@ def asset_basics(force_update: bool = False) -> pd.DataFrame:
159
160
  "subject_id",
160
161
  "acquisition_start_time",
161
162
  "acquisition_end_time",
163
+ "code_ocean",
162
164
  "process_date",
163
165
  "genotype",
164
166
  "location",
@@ -212,6 +214,13 @@ def asset_basics(force_update: bool = False) -> pd.DataFrame:
212
214
  else:
213
215
  process_date = None
214
216
 
217
+ # Get the CO asset ID
218
+ other_identifiers = record.get("other_identifiers", {})
219
+ if other_identifiers:
220
+ code_ocean = other_identifiers.get("Code Ocean", None)
221
+ else:
222
+ code_ocean = None
223
+
215
224
  flat_record = {
216
225
  "_id": record["_id"],
217
226
  "_last_modified": record.get("_last_modified", None),
@@ -221,6 +230,7 @@ def asset_basics(force_update: bool = False) -> pd.DataFrame:
221
230
  "subject_id": record.get("subject", {}).get("subject_id", None),
222
231
  "acquisition_start_time": record.get("acquisition", {}).get("acquisition_start_time", None),
223
232
  "acquisition_end_time": record.get("acquisition", {}).get("acquisition_end_time", None),
233
+ "code_ocean": code_ocean,
224
234
  "process_date": process_date,
225
235
  "genotype": record.get("subject", {}).get("subject_details", {}).get("genotype", None),
226
236
  "location": record.get("location", None),
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: zombie-squirrel
3
- Version: 0.5.2
3
+ Version: 0.6.1
4
4
  Summary: Generated from aind-library-template
5
5
  Author: Allen Institute for Neural Dynamics
6
6
  License: MIT
@@ -21,7 +21,7 @@ Dynamic: license-file
21
21
  ![Code Style](https://img.shields.io/badge/code%20style-black-black)
22
22
  [![semantic-release: angular](https://img.shields.io/badge/semantic--release-angular-e10079?logo=semantic-release)](https://github.com/semantic-release/semantic-release)
23
23
  ![Interrogate](https://img.shields.io/badge/interrogate-100.0%25-brightgreen)
24
- ![Coverage](https://img.shields.io/badge/coverage-100%25-brightgreen)
24
+ ![Coverage](https://img.shields.io/badge/coverage-99%25-brightgreen)
25
25
  ![Python](https://img.shields.io/badge/python->=3.10-blue?logo=python)
26
26
 
27
27
  <img src="zombie-squirrel_logo.png" width="400" alt="Logo (image from ChatGPT)">
@@ -30,9 +30,6 @@ Dynamic: license-file
30
30
 
31
31
  ```bash
32
32
  pip install zombie-squirrel
33
-
34
- ```bash
35
- uv sync
36
33
  ```
37
34
 
38
35
  ## Usage
@@ -40,11 +37,10 @@ uv sync
40
37
  ### Set backend
41
38
 
42
39
  ```bash
43
- export REDSHIFT_SECRETS='/aind/prod/redshift/credentials/readwrite'
44
- export TREE_SPECIES='REDSHIFT'
40
+ export TREE_SPECIES='s3'
45
41
  ```
46
42
 
47
- Options are 'REDSHIFT', 'MEMORY'.
43
+ Options are 's3', 'MEMORY'.
48
44
 
49
45
  ### Scurry (fetch) data
50
46
 
@@ -0,0 +1,10 @@
1
+ zombie_squirrel/__init__.py,sha256=v9cqU6rYDVeeVPFLDyhe6N28mEP2j7vXb8R98nwc--0,409
2
+ zombie_squirrel/acorns.py,sha256=mpinFacaN9BM6CvRy0M76JMb6n3oVPZLJxn8O4J9Wlw,2945
3
+ zombie_squirrel/squirrels.py,sha256=JWO0ihe7J3P9HbrSA4DHG3-o7EhM93WiwtxC2yVD0L0,12262
4
+ zombie_squirrel/sync.py,sha256=84Ta5beHiPuGBVzp9SCo7G1b4McTUohcUIf_TJbNIV8,518
5
+ zombie_squirrel/utils.py,sha256=kojQpHUKlRJD7WEZDfcpQIZTj9iUrtX5_6F-gWWzJW0,628
6
+ zombie_squirrel-0.6.1.dist-info/licenses/LICENSE,sha256=U0Y7B3gZJHXpjJVLgTQjM8e_c8w4JJpLgGhIdsoFR1Y,1092
7
+ zombie_squirrel-0.6.1.dist-info/METADATA,sha256=vywgegMbrLaSk7VdS_L3cT0PT9YD53nRA3o1mKUEVqc,1893
8
+ zombie_squirrel-0.6.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
9
+ zombie_squirrel-0.6.1.dist-info/top_level.txt,sha256=FmM0coe4AangURZLjM4JwwRv2B8H6oINYCoZLKLDCKA,16
10
+ zombie_squirrel-0.6.1.dist-info/RECORD,,
@@ -1,10 +0,0 @@
1
- zombie_squirrel/__init__.py,sha256=KZsMdWYM4SLPDVJh0hBmNbNouqd7-KFxEsMG-VB1-IU,409
2
- zombie_squirrel/acorns.py,sha256=mpinFacaN9BM6CvRy0M76JMb6n3oVPZLJxn8O4J9Wlw,2945
3
- zombie_squirrel/squirrels.py,sha256=PwLhJdpNZZCWIdqb3-MA3VRzCMf1tWwKcCxpTMbIjn0,11901
4
- zombie_squirrel/sync.py,sha256=84Ta5beHiPuGBVzp9SCo7G1b4McTUohcUIf_TJbNIV8,518
5
- zombie_squirrel/utils.py,sha256=kojQpHUKlRJD7WEZDfcpQIZTj9iUrtX5_6F-gWWzJW0,628
6
- zombie_squirrel-0.5.2.dist-info/licenses/LICENSE,sha256=U0Y7B3gZJHXpjJVLgTQjM8e_c8w4JJpLgGhIdsoFR1Y,1092
7
- zombie_squirrel-0.5.2.dist-info/METADATA,sha256=TPPXZYGlj_QbYlCu8d-ewMj0o6vETxmU3UdlKf8VvWE,1991
8
- zombie_squirrel-0.5.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
9
- zombie_squirrel-0.5.2.dist-info/top_level.txt,sha256=FmM0coe4AangURZLjM4JwwRv2B8H6oINYCoZLKLDCKA,16
10
- zombie_squirrel-0.5.2.dist-info/RECORD,,