Dear all,<br><br>suppose I have an error traceback within in interactive session like the following, if I use %debug, I will go to the environment of last traceback error.<br>Is it possible that I can choose to go one of the 5 errors (let's say I want to check the error environment of the second one which error occurs on line 19 for example)? <br>
<br>thanks in advance,<br><br>Chao<br><br>In [25]: %run -i popd_ign_suppress_Kloster.py<br>---------------------------------------------------------------------------<br>ValueError Traceback (most recent call last)<br>
/usr/local/lib/python2.7/dist-packages/IPython/utils/py3compat.pyc in execfile(fname, *where)<br> 173 else:<br> 174 filename = fname<br>--> 175 __builtin__.execfile(filename, *where)<br>
<br>/mnt/f/fire_north_boreal_forest/model_understanding_validation/popd_ign_suppress_Kloster.py in <module>()<br> 17 <br> 18 for i,popd_i in enumerate(popd):<br>---> 19 ign[i]=calc_ign(popd_i)<br> 20 supp[i]=calc_supp(popd_i)<br>
21 supp_ign[i]=ign[i]*supp[i]<br><br>/mnt/f/fire_north_boreal_forest/model_understanding_validation/popd_ign_suppress_Kloster.py in calc_ign(popd)<br> 6 def calc_ign(popd):<br> 7 fire_danger=6.8*(popd**(-0.57))<br>
----> 8 return np.min(1.,popd*fire_danger/(300.*6.8*(300**(-0.57))))<br> 9 <br> 10 def calc_supp(popd):<br><br>/usr/local/lib/python2.7/dist-packages/numpy/core/fromnumeric.pyc in amin(a, axis, out)<br> 1892 amin = a.min<br>
1893 except AttributeError:<br>-> 1894 return _wrapit(a, 'min', axis, out)<br> 1895 return amin(axis, out)<br> 1896 <br><br>/usr/local/lib/python2.7/dist-packages/numpy/core/fromnumeric.pyc in _wrapit(obj, method, *args, **kwds)<br>
35 except AttributeError:<br> 36 wrap = None<br>---> 37 result = getattr(asarray(obj),method)(*args, **kwds)<br> 38 if wrap:<br> 39 if not isinstance(result, mu.ndarray):<br>
<br>ValueError: axis(=1) out of bounds<br><br clear="all"><br>-- <br><div>***********************************************************************************</div>
<div>Chao YUE<br>Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL)<br>UMR 1572 CEA-CNRS-UVSQ<br>Batiment 712 - Pe 119<br>91191 GIF Sur YVETTE Cedex</div>
<div>Tel: (33) 01 69 08 29 02; Fax:01.69.08.77.16<br></div>
<div>************************************************************************************</div><br>