---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
/usr/local/lib/python3.4/site-packages/numpy/core/fromnumeric.py in reshape(a, newshape, order)
217 try:
--> 218 reshape = a.reshape
219 except AttributeError:
AttributeError: 'list' object has no attribute 'reshape'
During handling of the above exception, another exception occurred:
ValueError Traceback (most recent call last)
<ipython-input-9-373d83721df7> in <module>()
3
4 sedanka_grid.read_grd(gfname)
----> 5 sedanka_depth.read_dep(dfname)
/Users/slaselle/GitHub/pydelft/dep.py in read_dep(self, fname, grd_fname)
98 cols = np.max(np.ediff1d(a))
99 rows = np.size(np.array_split(a[0],np.where(np.diff(a[0])!=1)[0]+1))
--> 100 z = np.reshape(z, (rows, cols))
101
102
/usr/local/lib/python3.4/site-packages/numpy/core/fromnumeric.py in reshape(a, newshape, order)
218 reshape = a.reshape
219 except AttributeError:
--> 220 return _wrapit(a, 'reshape', newshape, order=order)
221 return reshape(newshape, order=order)
222
/usr/local/lib/python3.4/site-packages/numpy/core/fromnumeric.py in _wrapit(obj, method, *args, **kwds)
43 except AttributeError:
44 wrap = None
---> 45 result = getattr(asarray(obj), method)(*args, **kwds)
46 if wrap:
47 if not isinstance(result, mu.ndarray):
ValueError: total size of new array must be unchanged