Skip to content

Commit

Permalink
Fix for compatibility with AllenSDK changes
Browse files Browse the repository at this point in the history
  • Loading branch information
rgerkin committed Aug 6, 2018
1 parent 1b89ec0 commit d859aff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions neuronunit/aibs.py 100644 → 100755
Expand Up @@ -74,10 +74,9 @@ def get_observation(dataset_id, kind, cached=True, quiet=False):
ct = CellTypesApi()
cmd = ct.get_cell(dataset_id) # Cell metadata
if kind == 'rheobase':
sweep_id = cmd['ephys_features'][0]['rheobase_sweep_id']
sp = get_sweep_params(dataset_id, sweep_id)
if kind == 'rheobase':
value = sp['stimulus_absolute_amplitude']
kind = 'ef__threshold_i_long_square'
value = cmd[kind]
if kind in ['ef__threshold_i_long_square']: # A current
value = np.round(value, 2) # Round to nearest hundredth of a pA.
value *= pq.pA # Apply units.
db[identifier] = value
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt 100644 → 100755
Expand Up @@ -3,7 +3,7 @@ matplotlib>=2.0
neo==0.5.2
elephant==0.4.1
igor==0.3
allensdk>=0.14.2
allensdk==0.14.5
pyNeuroML>-0.3.10
pyNN>=0.9
execnet
Expand Down

0 comments on commit d859aff

Please sign in to comment.