---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-2-4ceead643dbe> in <module>()
5 x = os.path.join(base_path(), 'scripts', 'params.json')
6 x = init_sim(x, data_path='data')
----> 7 iterate_sim(x, iterations=1, steps=10)
/home/wd15/anaconda/envs/extreme/lib/python3.5/site-packages/toolz/functoolz.py in __call__(self, *args, **kwargs)
279 def __call__(self, *args, **kwargs):
280 try:
--> 281 return self._partial(*args, **kwargs)
282 except TypeError as exc:
283 if self._should_curry(args, kwargs, exc):
/home/wd15/git/extremefill-project/extremefill2D/extremefill2D/fextreme/__init__.py in iterate_sim(treant, iterations, steps)
315 treant,
316 iterate(restart_sim_iter(steps=steps)),
--> 317 nth(iterations)
318 )
319
/home/wd15/anaconda/envs/extreme/lib/python3.5/site-packages/toolz/functoolz.py in pipe(data, *funcs)
516 """
517 for func in funcs:
--> 518 data = func(data)
519 return data
520
/home/wd15/anaconda/envs/extreme/lib/python3.5/site-packages/toolz/functoolz.py in __call__(self, *args, **kwargs)
279 def __call__(self, *args, **kwargs):
280 try:
--> 281 return self._partial(*args, **kwargs)
282 except TypeError as exc:
283 if self._should_curry(args, kwargs, exc):
/home/wd15/anaconda/envs/extreme/lib/python3.5/site-packages/toolz/itertoolz.py in nth(n, seq)
339 return seq[n]
340 else:
--> 341 return next(itertools.islice(seq, n, None))
342
343
/home/wd15/anaconda/envs/extreme/lib/python3.5/site-packages/toolz/itertoolz.py in iterate(func, x)
602 while True:
603 yield x
--> 604 x = func(x)
605
606
/home/wd15/anaconda/envs/extreme/lib/python3.5/site-packages/toolz/functoolz.py in __call__(self, *args, **kwargs)
279 def __call__(self, *args, **kwargs):
280 try:
--> 281 return self._partial(*args, **kwargs)
282 except TypeError as exc:
283 if self._should_curry(args, kwargs, exc):
/home/wd15/git/extremefill-project/extremefill2D/extremefill2D/fextreme/__init__.py in restart_sim_iter(treant_and_error, steps)
296 ifexpr(lambda x: x[1] is None,
297 lambda x: restart_sim(x[0], steps),
--> 298 identity)
299 )
300
/home/wd15/anaconda/envs/extreme/lib/python3.5/site-packages/toolz/functoolz.py in pipe(data, *funcs)
516 """
517 for func in funcs:
--> 518 data = func(data)
519 return data
520
/home/wd15/anaconda/envs/extreme/lib/python3.5/site-packages/toolz/functoolz.py in __call__(self, *args, **kwargs)
279 def __call__(self, *args, **kwargs):
280 try:
--> 281 return self._partial(*args, **kwargs)
282 except TypeError as exc:
283 if self._should_curry(args, kwargs, exc):
/home/wd15/git/extremefill-project/extremefill2D/extremefill2D/fextreme/tools.py in ifexpr(fpredicate, ftrue, ffalse, arg)
223 @curry
224 def ifexpr(fpredicate, ftrue, ffalse, arg):
--> 225 if fpredicate(arg):
226 return ftrue(arg)
227 else:
/home/wd15/git/extremefill-project/extremefill2D/extremefill2D/fextreme/__init__.py in <lambda>(x)
294 return pipe(
295 treant_and_error,
--> 296 ifexpr(lambda x: x[1] is None,
297 lambda x: restart_sim(x[0], steps),
298 identity)
/home/wd15/anaconda/envs/extreme/lib/python3.5/site-packages/datreant/core/trees.py in __getitem__(self, path)
230 return filt(path)
231 else:
--> 232 raise ValueError('Must use a path or a list of paths')
233
234 @classmethod
ValueError: Must use a path or a list of paths