Skip to content

Exception 'missing key "sweep_by_type"' #1596

Open
@thorstenhater

Description

@thorstenhater

Describe the bug
Downloading files with electro-physiological model from the cell-types DB, I repeatedly
run into the error

[...]
multiprocessing.pool.RemoteTraceback:
"""
Traceback (most recent call last):
  File "/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/multiprocessing/pool.py", line 121, in worker
    result = (True, func(*args, **kwds))
  File "/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/multiprocessing/pool.py", line 44, in mapstar
    return list(map(*args))
  File "/Users/hater/Library/Python/3.7/lib/python/site-packages/allensdk/model/biophysical/runner.py", line 116, in run_sync
    sweeps_by_type = run_params['sweeps_by_type']
KeyError: 'sweeps_by_type'
"""

I followed the steps mentioned here

AllenSDK

To Reproduce

Install AllenSDK via pip

pip3 install --user allensdk

Download cell models

from allensdk.api.queries.biophysical_api import BiophysicalApi

ids = [497232312, 491766131]
bp = BiophysicalApi()
bp.cache_stimulus = True
for id in ids:
    bp.cache_data(id, working_directory=f'model-{id}')

Run models

cd model-491766131
python3 -m allensdk.model.biophysical.runner manifest.json

Expected behavior
Model runs without error.

Actual Behavior
The exception above gets thrown.

Environment (please complete the following information):

  • OS & version: MacOs 10.15.4 (Catalina)
  • Python version 3.7
  • AllenSDK version 1.7.1

Additional context
NEURON installed via MacOs installer, modfiles compiled successfully

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugcelltypesrelates to Insitute Cell Types programexternalIssues submitted from external users

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions