<br>Hi all, <br><br>I am finding it hard to debug cases where I am creating numpy arrays from generators, and the generator function throws an exception. It seems that numpy just swallows the exception, and what I get is a not too helpful<br>
<br>ValueError: iterator too short<br><br>Much more helpfull would be to see the original exception, and get the stacktrace in ipython (or wherever I am working).<br><br>Is this possible in some easy way, or am I stuck with the equivalent of <br>
<br>if debug: <br>   mygenerator = list(mygenerator)<br>a = np.fromiter(iter(mygenerator), dtype=xxx, count=xxx)<br clear="all"><br>-- <br>Åsmund Hjulstad, <a href="mailto:asmund@hjulstad.com">asmund@hjulstad.com</a><br>