Skip to content

Commit

Permalink
fixed deprecated warning in database.py
Browse files Browse the repository at this point in the history
  • Loading branch information
spanoamara committed Sep 20, 2020
1 parent d6480b7 commit b8aab31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,4 +113,4 @@ def get(protocol, subset, classes=CLASSES, variables=VARIABLES, setname='csh101'
retval = split_data(load(setname), subset, PROTOCOLS[protocol])
varindex = [VARIABLES.index(k) for k in variables]
retval = dict([(k, retval[k][:, varindex]) for k in classes])
return np.array([retval[k] for k in classes])
return np.array([retval[k] for k in classes], dtype=object)

0 comments on commit b8aab31

Please sign in to comment.