<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 27, 2016 at 11:35 PM, Benjamin Root <span dir="ltr"><<a href="mailto:ben.v.root@gmail.com" target="_blank">ben.v.root@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Perhaps the numexpr package might be safer? Not exactly meant for this situation (meant for optimizations), but the evaluator is pretty darn safe.<br><br></div></div></blockquote><div><br></div><div>It would not be able to evaluate something like 'np.arange(50)' for example, since it only has a limited subset of numpy functionality. In the example provided that or linspace is likely the natural input for the variable 't'.</div></div><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">Robert McLeod, Ph.D.<br>Center for Cellular Imaging and Nano Analytics (C-CINA)</div><div dir="ltr">Biozentrum der Universität Basel</div><div dir="ltr">Mattenstrasse 26, 4058 Basel<br>Work: +41.061.387.3225<br><a href="mailto:robert.mcleod@unibas.ch" target="_blank">robert.mcleod@unibas.ch</a></div><div dir="ltr"><span style="font-size:small"><a href="mailto:robert.mcleod@ethz.ch" target="_blank">robert.mcleod@bsse.ethz.ch</a></span></div><div><a href="mailto:robbmcleod@gmail.com" target="_blank">robbmcleod@gmail.com</a><br></div></div></div></div></div></div></div></div></div></div>
</div></div>