entitysdk 0.6.0__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.
- {entitysdk-0.6.0/src/entitysdk.egg-info → entitysdk-0.6.1}/PKG-INFO +1 -1
- {entitysdk-0.6.0 → entitysdk-0.6.1}/examples/03_circuit.ipynb +103 -9
- entitysdk-0.6.1/examples/utils.py +13 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/src/entitysdk/downloaders/ion_channel_model.py +1 -1
- {entitysdk-0.6.0 → entitysdk-0.6.1}/src/entitysdk/models/__init__.py +2 -0
- entitysdk-0.6.1/src/entitysdk/models/brain_region_hierarchy.py +19 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/src/entitysdk/route.py +1 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1/src/entitysdk.egg-info}/PKG-INFO +1 -1
- {entitysdk-0.6.0 → entitysdk-0.6.1}/src/entitysdk.egg-info/SOURCES.txt +2 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/tests/unit/downloaders/test_ion_channel_model.py +1 -1
- {entitysdk-0.6.0 → entitysdk-0.6.1}/tests/unit/downloaders/test_memodel.py +1 -1
- {entitysdk-0.6.0 → entitysdk-0.6.1}/tests/unit/test_client.py +1 -1
- {entitysdk-0.6.0 → entitysdk-0.6.1}/.github/workflows/sdist.yml +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/.github/workflows/tox.yml +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/.gitignore +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/CHANGELOG.rst +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/CONTRIBUTING.md +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/LICENSE.txt +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/README.md +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/examples/01_searching.ipynb +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/examples/02_morphology.ipynb +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/examples/04_simulation_campaign.ipynb +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/pyproject.toml +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/setup.cfg +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/src/entitysdk/__init__.py +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/src/entitysdk/client.py +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/src/entitysdk/common.py +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/src/entitysdk/config.py +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/src/entitysdk/core.py +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/src/entitysdk/downloaders/__init__.py +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/src/entitysdk/downloaders/emodel.py +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/src/entitysdk/downloaders/memodel.py +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/src/entitysdk/downloaders/morphology.py +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/src/entitysdk/exception.py +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/src/entitysdk/mixin.py +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/src/entitysdk/models/activity.py +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/src/entitysdk/models/agent.py +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/src/entitysdk/models/asset.py +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/src/entitysdk/models/base.py +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/src/entitysdk/models/brain_location.py +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/src/entitysdk/models/brain_region.py +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/src/entitysdk/models/circuit.py +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/src/entitysdk/models/classification.py +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/src/entitysdk/models/contribution.py +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/src/entitysdk/models/core.py +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/src/entitysdk/models/electrical_cell_recording.py +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/src/entitysdk/models/emodel.py +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/src/entitysdk/models/entity.py +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/src/entitysdk/models/etype.py +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/src/entitysdk/models/ion_channel_model.py +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/src/entitysdk/models/license.py +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/src/entitysdk/models/memodel.py +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/src/entitysdk/models/memodelcalibrationresult.py +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/src/entitysdk/models/morphology.py +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/src/entitysdk/models/mtype.py +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/src/entitysdk/models/response.py +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/src/entitysdk/models/scientific_artifact.py +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/src/entitysdk/models/simulation.py +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/src/entitysdk/models/simulation_campaign.py +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/src/entitysdk/models/simulation_execution.py +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/src/entitysdk/models/simulation_generation.py +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/src/entitysdk/models/simulation_result.py +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/src/entitysdk/models/single_neuron_simulation.py +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/src/entitysdk/models/single_neuron_synaptome_simulation.py +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/src/entitysdk/models/subject.py +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/src/entitysdk/models/synaptome.py +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/src/entitysdk/models/taxonomy.py +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/src/entitysdk/models/validation_result.py +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/src/entitysdk/result.py +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/src/entitysdk/schemas/__init__.py +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/src/entitysdk/schemas/asset.py +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/src/entitysdk/schemas/base.py +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/src/entitysdk/schemas/memodel.py +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/src/entitysdk/serdes.py +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/src/entitysdk/token_manager.py +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/src/entitysdk/types.py +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/src/entitysdk/util.py +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/src/entitysdk/utils/__init__.py +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/src/entitysdk/utils/asset.py +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/src/entitysdk/utils/filesystem.py +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/src/entitysdk.egg-info/dependency_links.txt +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/src/entitysdk.egg-info/requires.txt +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/src/entitysdk.egg-info/top_level.txt +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/tests/__init__.py +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/tests/integration/__init__.py +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/tests/integration/conftest.py +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/tests/integration/test_searching.py +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/tests/unit/__init__.py +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/tests/unit/conftest.py +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/tests/unit/downloaders/test_emodel.py +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/tests/unit/downloaders/test_morphology.py +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/tests/unit/models/__init__.py +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/tests/unit/models/data/.gitignore +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/tests/unit/models/data/circuit.json +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/tests/unit/models/data/electrical_cell_recording.json +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/tests/unit/models/data/ion_channel_model.json +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/tests/unit/models/data/memodel_calibration_result.json +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/tests/unit/models/data/reconstruction_morphology.json +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/tests/unit/models/data/simulation_campaign.json +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/tests/unit/models/data/validation_result.json +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/tests/unit/models/test_agent.py +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/tests/unit/models/test_asset.py +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/tests/unit/models/test_brain_region.py +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/tests/unit/models/test_circuit.py +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/tests/unit/models/test_contribution.py +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/tests/unit/models/test_electrical_cell_recording.py +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/tests/unit/models/test_init.py +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/tests/unit/models/test_ion_channel_model.py +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/tests/unit/models/test_memodel_calibration_result.py +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/tests/unit/models/test_morphology.py +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/tests/unit/models/test_simulation_campaign.py +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/tests/unit/models/test_validation_result.py +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/tests/unit/test_base.py +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/tests/unit/test_common.py +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/tests/unit/test_config.py +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/tests/unit/test_result.py +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/tests/unit/test_route.py +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/tests/unit/test_serdes.py +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/tests/unit/test_token_manager.py +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/tests/unit/test_util.py +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/tests/unit/util.py +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/tests/unit/utils/test_asset.py +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/tests/unit/utils/test_filesystem.py +0 -0
- {entitysdk-0.6.0 → entitysdk-0.6.1}/tox.ini +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: entitysdk
|
3
|
-
Version: 0.6.
|
3
|
+
Version: 0.6.1
|
4
4
|
Summary: Python library for interacting with the entitycore service
|
5
5
|
Author-email: Open Brain Institute <info@openbraininstitute.org>
|
6
6
|
Maintainer-email: Open Brain Institute <info@openbraininstitute.org>
|
@@ -8,8 +8,11 @@
|
|
8
8
|
"outputs": [],
|
9
9
|
"source": [
|
10
10
|
"import os\n",
|
11
|
+
"import tempfile\n",
|
12
|
+
"from pathlib import Path\n",
|
11
13
|
"\n",
|
12
14
|
"from rich import print as rprint\n",
|
15
|
+
"from utils import create_mock_circuit_dir\n",
|
13
16
|
"\n",
|
14
17
|
"from entitysdk import Client, ProjectContext, models\n",
|
15
18
|
"\n",
|
@@ -109,44 +112,135 @@
|
|
109
112
|
},
|
110
113
|
{
|
111
114
|
"cell_type": "markdown",
|
112
|
-
"id": "
|
115
|
+
"id": "c3ff25a9-fc61-4c19-8949-140c1dd33af7",
|
113
116
|
"metadata": {},
|
114
117
|
"source": [
|
115
|
-
"##
|
118
|
+
"## Upload directory"
|
116
119
|
]
|
117
120
|
},
|
118
121
|
{
|
119
122
|
"cell_type": "code",
|
120
123
|
"execution_count": null,
|
121
|
-
"id": "
|
124
|
+
"id": "3dccd413-f91b-42b1-8efe-56d01f68ddd0",
|
122
125
|
"metadata": {},
|
123
126
|
"outputs": [],
|
124
127
|
"source": [
|
125
|
-
"
|
128
|
+
"with tempfile.TemporaryDirectory() as tdir:\n",
|
129
|
+
" # create a hierarchy of files to upload\n",
|
130
|
+
" create_mock_circuit_dir(tdir)\n",
|
131
|
+
"\n",
|
132
|
+
" files = {str(path.relative_to(tdir)): path for path in Path(tdir).rglob(\"*\") if path.is_file()}\n",
|
133
|
+
"\n",
|
134
|
+
" directory_asset = client.upload_directory(\n",
|
135
|
+
" entity_id=registered_circuit.id,\n",
|
136
|
+
" entity_type=models.Circuit,\n",
|
137
|
+
" name=\"circuit\",\n",
|
138
|
+
" paths=files,\n",
|
139
|
+
" )"
|
140
|
+
]
|
141
|
+
},
|
142
|
+
{
|
143
|
+
"cell_type": "markdown",
|
144
|
+
"id": "6ad6ce94-ad74-4710-b274-1883fdeb41f5",
|
145
|
+
"metadata": {},
|
146
|
+
"source": [
|
147
|
+
"## List directory"
|
126
148
|
]
|
127
149
|
},
|
128
150
|
{
|
129
151
|
"cell_type": "code",
|
130
152
|
"execution_count": null,
|
131
|
-
"id": "
|
153
|
+
"id": "3b0d302e-46fe-4d97-b221-99833975eede",
|
132
154
|
"metadata": {},
|
133
155
|
"outputs": [],
|
134
156
|
"source": [
|
135
|
-
"
|
157
|
+
"files = client.list_directory(\n",
|
158
|
+
" entity_id=registered_circuit.id, entity_type=models.Circuit, asset_id=directory_asset.id\n",
|
159
|
+
")"
|
160
|
+
]
|
161
|
+
},
|
162
|
+
{
|
163
|
+
"cell_type": "code",
|
164
|
+
"execution_count": null,
|
165
|
+
"id": "749b85d2-dbce-455b-9ade-fec7e17f7208",
|
166
|
+
"metadata": {},
|
167
|
+
"outputs": [],
|
168
|
+
"source": [
|
169
|
+
"rprint(files)"
|
170
|
+
]
|
171
|
+
},
|
172
|
+
{
|
173
|
+
"cell_type": "markdown",
|
174
|
+
"id": "aad97379-3010-42c9-9fc5-f30101163f1c",
|
175
|
+
"metadata": {},
|
176
|
+
"source": [
|
177
|
+
"## Download directory"
|
178
|
+
]
|
179
|
+
},
|
180
|
+
{
|
181
|
+
"cell_type": "code",
|
182
|
+
"execution_count": null,
|
183
|
+
"id": "ace27230-6dfa-4bc6-8b2c-33998a22a111",
|
184
|
+
"metadata": {},
|
185
|
+
"outputs": [],
|
186
|
+
"source": [
|
187
|
+
"with tempfile.TemporaryDirectory() as tdir:\n",
|
188
|
+
" client.download_directory(\n",
|
189
|
+
" entity_id=registered_circuit.id,\n",
|
190
|
+
" entity_type=models.Circuit,\n",
|
191
|
+
" asset_id=directory_asset.id,\n",
|
192
|
+
" output_path=Path(tdir),\n",
|
193
|
+
" )\n",
|
194
|
+
" files = {str(path.relative_to(tdir)): path for path in Path(tdir).rglob(\"*\") if path.is_file()}\n",
|
195
|
+
" rprint(files)"
|
196
|
+
]
|
197
|
+
},
|
198
|
+
{
|
199
|
+
"cell_type": "markdown",
|
200
|
+
"id": "8bf620b4-fafc-4476-a719-bbe6e7a821bf",
|
201
|
+
"metadata": {},
|
202
|
+
"source": [
|
203
|
+
"## Fetch Circuit"
|
136
204
|
]
|
137
205
|
},
|
138
206
|
{
|
139
207
|
"cell_type": "code",
|
140
208
|
"execution_count": null,
|
141
|
-
"id": "
|
209
|
+
"id": "bed0af2c-ae46-41b0-ba77-485daef0a87b",
|
142
210
|
"metadata": {},
|
143
211
|
"outputs": [],
|
144
|
-
"source": [
|
212
|
+
"source": [
|
213
|
+
"fetched = client.get_entity(entity_id=registered_circuit.id, entity_type=models.Circuit)"
|
214
|
+
]
|
215
|
+
},
|
216
|
+
{
|
217
|
+
"cell_type": "code",
|
218
|
+
"execution_count": null,
|
219
|
+
"id": "ee27c8b5-dfa5-4fa5-ac2f-6cf158057bcf",
|
220
|
+
"metadata": {},
|
221
|
+
"outputs": [],
|
222
|
+
"source": [
|
223
|
+
"rprint(fetched)"
|
224
|
+
]
|
145
225
|
}
|
146
226
|
],
|
147
227
|
"metadata": {
|
228
|
+
"kernelspec": {
|
229
|
+
"display_name": "Python 3 (ipykernel)",
|
230
|
+
"language": "python",
|
231
|
+
"name": "python3"
|
232
|
+
},
|
148
233
|
"language_info": {
|
149
|
-
"
|
234
|
+
"codemirror_mode": {
|
235
|
+
"name": "ipython",
|
236
|
+
"version": 3
|
237
|
+
},
|
238
|
+
"file_extension": ".py",
|
239
|
+
"mimetype": "text/x-python",
|
240
|
+
"name": "python",
|
241
|
+
"nbconvert_exporter": "python",
|
242
|
+
"pygments_lexer": "ipython3",
|
243
|
+
"version": "3.12.10"
|
150
244
|
}
|
151
245
|
},
|
152
246
|
"nbformat": 4,
|
@@ -0,0 +1,13 @@
|
|
1
|
+
"""Helpers."""
|
2
|
+
|
3
|
+
from pathlib import Path
|
4
|
+
|
5
|
+
|
6
|
+
def create_mock_circuit_dir(output_dir: Path):
|
7
|
+
"""Create a mock hierarchy that looks like a circuit."""
|
8
|
+
output_dir = Path(output_dir)
|
9
|
+
output_dir.mkdir(exist_ok=True)
|
10
|
+
(output_dir / "circuit_config.json").touch()
|
11
|
+
(output_dir / "sonata").mkdir()
|
12
|
+
(output_dir / "sonata" / "nodes.h5").touch()
|
13
|
+
(output_dir / "sonata" / "edges.h5").touch()
|
@@ -22,7 +22,7 @@ def download_ion_channel_mechanism(
|
|
22
22
|
output_dir = create_dir(output_dir)
|
23
23
|
asset = client.download_assets(
|
24
24
|
ion_channel_model,
|
25
|
-
selection={"content_type": "application/
|
25
|
+
selection={"content_type": "application/mod"},
|
26
26
|
output_path=output_dir,
|
27
27
|
).one()
|
28
28
|
|
@@ -4,6 +4,7 @@ from entitysdk.models.agent import Organization, Person
|
|
4
4
|
from entitysdk.models.asset import Asset
|
5
5
|
from entitysdk.models.brain_location import BrainLocation
|
6
6
|
from entitysdk.models.brain_region import BrainRegion
|
7
|
+
from entitysdk.models.brain_region_hierarchy import BrainRegionHierarchy
|
7
8
|
from entitysdk.models.circuit import Circuit
|
8
9
|
from entitysdk.models.classification import ETypeClassification, MTypeClassification
|
9
10
|
from entitysdk.models.contribution import Contribution, Role
|
@@ -31,6 +32,7 @@ __all__ = [
|
|
31
32
|
"Asset",
|
32
33
|
"BrainLocation",
|
33
34
|
"BrainRegion",
|
35
|
+
"BrainRegionHierarchy",
|
34
36
|
"Circuit",
|
35
37
|
"Contribution",
|
36
38
|
"ElectricalCellRecording",
|
@@ -0,0 +1,19 @@
|
|
1
|
+
"""BrainRegionHierarchy model."""
|
2
|
+
|
3
|
+
from typing import Annotated
|
4
|
+
|
5
|
+
from pydantic import Field
|
6
|
+
|
7
|
+
from entitysdk.models.core import Identifiable
|
8
|
+
|
9
|
+
|
10
|
+
class BrainRegionHierarchy(Identifiable):
|
11
|
+
"""BrainRegionHierarchy model."""
|
12
|
+
|
13
|
+
name: Annotated[
|
14
|
+
str,
|
15
|
+
Field(
|
16
|
+
examples=["Thalamus"],
|
17
|
+
description="The name of the brain region.",
|
18
|
+
),
|
19
|
+
]
|
@@ -9,6 +9,7 @@ _ROUTES = {
|
|
9
9
|
"Activity": "activity",
|
10
10
|
"BrainLocation": "brain-location",
|
11
11
|
"BrainRegion": "brain-region",
|
12
|
+
"BrainRegionHierarchy": "brain-region-hierarchy",
|
12
13
|
"Circuit": "circuit",
|
13
14
|
"Contribution": "contribution",
|
14
15
|
"ElectricalCellRecording": "electrical-cell-recording",
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: entitysdk
|
3
|
-
Version: 0.6.
|
3
|
+
Version: 0.6.1
|
4
4
|
Summary: Python library for interacting with the entitycore service
|
5
5
|
Author-email: Open Brain Institute <info@openbraininstitute.org>
|
6
6
|
Maintainer-email: Open Brain Institute <info@openbraininstitute.org>
|
@@ -11,6 +11,7 @@ examples/01_searching.ipynb
|
|
11
11
|
examples/02_morphology.ipynb
|
12
12
|
examples/03_circuit.ipynb
|
13
13
|
examples/04_simulation_campaign.ipynb
|
14
|
+
examples/utils.py
|
14
15
|
src/entitysdk/__init__.py
|
15
16
|
src/entitysdk/client.py
|
16
17
|
src/entitysdk/common.py
|
@@ -41,6 +42,7 @@ src/entitysdk/models/asset.py
|
|
41
42
|
src/entitysdk/models/base.py
|
42
43
|
src/entitysdk/models/brain_location.py
|
43
44
|
src/entitysdk/models/brain_region.py
|
45
|
+
src/entitysdk/models/brain_region_hierarchy.py
|
44
46
|
src/entitysdk/models/circuit.py
|
45
47
|
src/entitysdk/models/classification.py
|
46
48
|
src/entitysdk/models/contribution.py
|
@@ -555,7 +555,7 @@ def test_client_download_assets(
|
|
555
555
|
| {
|
556
556
|
"assets": [
|
557
557
|
_mock_asset_response(asset1_id)
|
558
|
-
| {"path": "foo/bar/bar.h5", "content_type": "application/hdf5"},
|
558
|
+
| {"path": "foo/bar/bar.h5", "content_type": "application/x-hdf5"},
|
559
559
|
_mock_asset_response(asset2_id)
|
560
560
|
| {"path": "foo/bar/bar.swc", "content_type": "application/swc"},
|
561
561
|
]
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{entitysdk-0.6.0 → entitysdk-0.6.1}/src/entitysdk/models/single_neuron_synaptome_simulation.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|