Traceback (most recent call last):


 "/home/kevin/anaconda2/lib/python2.7/site-packages/nose/loader.py", line 251, in generate

for test in g():


 "/home/kevin/anaconda2/lib/python2.7/site-packages/nipype/algorithms/tests/test_modelgen.py", line 138, in test_modelgen_sparse

res = s.run()


 "/home/kevin/anaconda2/lib/python2.7/site-packages/nipype/interfaces/base.py", line 1043, in run

runtime = self._run_wrapper(runtime)


 "/home/kevin/anaconda2/lib/python2.7/site-packages/nipype/interfaces/base.py", line 1000, in _run_wrapper

runtime = self._run_interface(runtime)


 "/home/kevin/anaconda2/lib/python2.7/site-packages/nipype/algorithms/modelgen.py", line 408, in _run_interface

self._generate_design()


 "/home/kevin/anaconda2/lib/python2.7/site-packages/nipype/algorithms/modelgen.py", line 802, in _generate_design

sparselist = self._generate_clustered_design(infolist)


 "/home/kevin/anaconda2/lib/python2.7/site-packages/nipype/algorithms/modelgen.py", line 783, in _generate_clustered_design

reg, regnames = self._cond_to_regress(info, nscans)


 "/home/kevin/anaconda2/lib/python2.7/site-packages/nipype/algorithms/modelgen.py", line 751, in _cond_to_regress

nscans)


 "/home/kevin/anaconda2/lib/python2.7/site-packages/nipype/algorithms/modelgen.py", line 655, in _gen_regress

boxcar = np.zeros((50.0 * 1e3 / dt))
TypeError: 'numpy.float64' object cannot be interpreted as an index

```Traceback (most recent call last):


 "./train.py", line 254, in <module>

main(_args.directory, _args.epochs, _args.verbose, _args.section)


 "./train.py", line 29, in main

train_section(directory, epochs, verbose, section)


 "./train.py", line 132, in train_section

parse_and_preprocess(training_sets[l], entry_size, shuffle=True)


 "./train.py", line 226, in parse_and_preprocess

arr = dataframe.to_dask_array(lengths=True)


 "/projects/tbrockmeyer/road_tunnel/env/lib/python3.6/site-packages/dask/dataframe/core.py", line 1105, in to_dask_array

lengths = tuple(self.map_partitions(len).compute())


 "/projects/tbrockmeyer/road_tunnel/env/lib/python3.6/site-packages/dask/base.py", line 156, in compute

(result,) = compute(self, traverse=False, **kwargs)


 "/projects/tbrockmeyer/road_tunnel/env/lib/python3.6/site-packages/dask/base.py", line 397, in compute

results = schedule(dsk, keys, **kwargs)


 "/projects/tbrockmeyer/road_tunnel/env/lib/python3.6/site-packages/dask/threaded.py", line 76, in get

pack_exception=pack_exception, **kwargs)


 "/projects/tbrockmeyer/road_tunnel/env/lib/python3.6/site-packages/dask/local.py", line 501, in get_async

raise_exception(exc, tb)


 "/projects/tbrockmeyer/road_tunnel/env/lib/python3.6/site-packages/dask/compatibility.py", line 112, in reraise

raise exc


 "/projects/tbrockmeyer/road_tunnel/env/lib/python3.6/site-packages/dask/local.py", line 272, in execute_task

result = _execute_task(task, data)


 "/projects/tbrockmeyer/road_tunnel/env/lib/python3.6/site-packages/dask/local.py", line 252, in _execute_task

args2 = [_execute_task(a, cache) for a in args]


 "/projects/tbrockmeyer/road_tunnel/env/lib/python3.6/site-packages/dask/local.py", line 252, in <listcomp>

args2 = [_execute_task(a, cache) for a in args]


 "/projects/tbrockmeyer/road_tunnel/env/lib/python3.6/site-packages/dask/local.py", line 249, in _execute_task

return [_execute_task(a, cache) for a in arg]


 "/projects/tbrockmeyer/road_tunnel/env/lib/python3.6/site-packages/dask/local.py", line 249, in <listcomp>

return [_execute_task(a, cache) for a in arg]


 "/projects/tbrockmeyer/road_tunnel/env/lib/python3.6/site-packages/dask/local.py", line 252, in _execute_task

args2 = [_execute_task(a, cache) for a in args]


 "/projects/tbrockmeyer/road_tunnel/env/lib/python3.6/site-packages/dask/local.py", line 252, in <listcomp>

args2 = [_execute_task(a, cache) for a in args]


 "/projects/tbrockmeyer/road_tunnel/env/lib/python3.6/site-packages/dask/local.py", line 252, in _execute_task

args2 = [_execute_task(a, cache) for a in args]


 "/projects/tbrockmeyer/road_tunnel/env/lib/python3.6/site-packages/dask/local.py", line 252, in <listcomp>

args2 = [_execute_task(a, cache) for a in args]


 "/projects/tbrockmeyer/road_tunnel/env/lib/python3.6/site-packages/dask/local.py", line 249, in _execute_task

return [_execute_task(a, cache) for a in arg]


 "/projects/tbrockmeyer/road_tunnel/env/lib/python3.6/site-packages/dask/local.py", line 249, in <listcomp>

return [_execute_task(a, cache) for a in arg]


 "/projects/tbrockmeyer/road_tunnel/env/lib/python3.6/site-packages/dask/local.py", line 253, in _execute_task

return func(*args2)


 "/projects/tbrockmeyer/road_tunnel/env/lib/python3.6/site-packages/dask/dataframe/core.py", line 3684, in apply_and_enforce

df = func(*args, **kwargs)


 "/projects/tbrockmeyer/road_tunnel/env/lib/python3.6/site-packages/dask/dataframe/methods.py", line 45, in try_loc

return loc(df, iindexer, cindexer)


 "/projects/tbrockmeyer/road_tunnel/env/lib/python3.6/site-packages/dask/dataframe/methods.py", line 31, in loc

return df.loc[iindexer]


 "/projects/tbrockmeyer/road_tunnel/env/lib/python3.6/site-packages/pandas/core/indexing.py", line 1478, in __getitem__

return self._getitem_axis(maybe_callable, axis=axis)


 "/projects/tbrockmeyer/road_tunnel/env/lib/python3.6/site-packages/pandas/core/indexing.py", line 1866, in _getitem_axis

return self._get_slice_axis(key, axis=axis)


 "/projects/tbrockmeyer/road_tunnel/env/lib/python3.6/site-packages/pandas/core/indexing.py", line 1511, in _get_slice_axis

slice_obj.step, kind=self.name)


 "/projects/tbrockmeyer/road_tunnel/env/lib/python3.6/site-packages/pandas/core/indexes/base.py", line 4091, in slice_indexer

kind=kind)


 "/projects/tbrockmeyer/road_tunnel/env/lib/python3.6/site-packages/pandas/core/indexes/base.py", line 4292, in slice_locs

start_slice = self.get_slice_bound(start, 'left', kind)


 "/projects/tbrockmeyer/road_tunnel/env/lib/python3.6/site-packages/pandas/core/indexes/base.py", line 4218, in get_slice_bound

label = self._maybe_cast_slice_bound(label, side, kind)


 "/projects/tbrockmeyer/road_tunnel/env/lib/python3.6/site-packages/pandas/core/indexes/base.py", line 4169, in _maybe_cast_slice_bound

self._invalid_indexer('slice', label)


 "/projects/tbrockmeyer/road_tunnel/env/lib/python3.6/site-packages/pandas/core/indexes/base.py", line 1849, in _invalid_indexer

kind=type(key)))
TypeError: cannot do slice indexing on <class 'pandas.core.indexes.base.Index'> with these indexers [0] of <class 'int'>```