zombie-squirrel 0.5.5__tar.gz → 0.6.1__tar.gz
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-0.5.5/src/zombie_squirrel.egg-info → zombie_squirrel-0.6.1}/PKG-INFO +2 -2
- {zombie_squirrel-0.5.5 → zombie_squirrel-0.6.1}/README.md +1 -1
- {zombie_squirrel-0.5.5 → zombie_squirrel-0.6.1}/src/zombie_squirrel/__init__.py +1 -1
- {zombie_squirrel-0.5.5 → zombie_squirrel-0.6.1}/src/zombie_squirrel/squirrels.py +10 -0
- {zombie_squirrel-0.5.5 → zombie_squirrel-0.6.1/src/zombie_squirrel.egg-info}/PKG-INFO +2 -2
- {zombie_squirrel-0.5.5 → zombie_squirrel-0.6.1}/LICENSE +0 -0
- {zombie_squirrel-0.5.5 → zombie_squirrel-0.6.1}/pyproject.toml +0 -0
- {zombie_squirrel-0.5.5 → zombie_squirrel-0.6.1}/setup.cfg +0 -0
- {zombie_squirrel-0.5.5 → zombie_squirrel-0.6.1}/setup.py +0 -0
- {zombie_squirrel-0.5.5 → zombie_squirrel-0.6.1}/src/zombie_squirrel/acorns.py +0 -0
- {zombie_squirrel-0.5.5 → zombie_squirrel-0.6.1}/src/zombie_squirrel/sync.py +0 -0
- {zombie_squirrel-0.5.5 → zombie_squirrel-0.6.1}/src/zombie_squirrel/utils.py +0 -0
- {zombie_squirrel-0.5.5 → zombie_squirrel-0.6.1}/src/zombie_squirrel.egg-info/SOURCES.txt +0 -0
- {zombie_squirrel-0.5.5 → zombie_squirrel-0.6.1}/src/zombie_squirrel.egg-info/dependency_links.txt +0 -0
- {zombie_squirrel-0.5.5 → zombie_squirrel-0.6.1}/src/zombie_squirrel.egg-info/requires.txt +0 -0
- {zombie_squirrel-0.5.5 → zombie_squirrel-0.6.1}/src/zombie_squirrel.egg-info/top_level.txt +0 -0
- {zombie_squirrel-0.5.5 → zombie_squirrel-0.6.1}/tests/test_acorns.py +0 -0
- {zombie_squirrel-0.5.5 → zombie_squirrel-0.6.1}/tests/test_squirrels.py +0 -0
- {zombie_squirrel-0.5.5 → zombie_squirrel-0.6.1}/tests/test_sync.py +0 -0
- {zombie_squirrel-0.5.5 → zombie_squirrel-0.6.1}/tests/test_utils.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: zombie-squirrel
|
|
3
|
-
Version: 0.
|
|
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
|

|
|
22
22
|
[](https://github.com/semantic-release/semantic-release)
|
|
23
23
|

|
|
24
|
-

|
|
25
25
|

|
|
26
26
|
|
|
27
27
|
<img src="zombie-squirrel_logo.png" width="400" alt="Logo (image from ChatGPT)">
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|

|
|
5
5
|
[](https://github.com/semantic-release/semantic-release)
|
|
6
6
|

|
|
7
|
-

|
|
8
8
|

|
|
9
9
|
|
|
10
10
|
<img src="zombie-squirrel_logo.png" width="400" alt="Logo (image from ChatGPT)">
|
|
@@ -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.
|
|
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.
|
|
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
|

|
|
22
22
|
[](https://github.com/semantic-release/semantic-release)
|
|
23
23
|

|
|
24
|
-

|
|
25
25
|

|
|
26
26
|
|
|
27
27
|
<img src="zombie-squirrel_logo.png" width="400" alt="Logo (image from ChatGPT)">
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{zombie_squirrel-0.5.5 → zombie_squirrel-0.6.1}/src/zombie_squirrel.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|