tornado_embed.py example taking log(0)

The tornado_embed.py example does
x = np.linspace(0, 10, 1000)

y = np.log(x)*np.sin(x)

This produces warnings as log(0) is being computed. Would be reasonable to change so that this condition is averted and the RunTime warning is not produced?

Prabu

Hi,

Certainly, I wrote those examples in a hurry right before the last release. But really, I only intended that to be placeholder code. I'd very much like to change them entirely to something that is

* much more interesting, but
* still reasonably short

If you have any ideas for a more compelling demonstration please share them or just make a PR!

Thanks,

Bryan

ยทยทยท

On Mar 11, 2017, at 09:25, [email protected] wrote:

The tornado_embed.py example does
x = np.linspace(0, 10, 1000)
y = np.log(x)*np.sin(x)

This produces warnings as log(0) is being computed. Would be reasonable to change so that this condition is averted and the RunTime warning is not produced?

Prabu

--
You received this message because you are subscribed to the Google Groups "Bokeh Discussion - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/b6664c64-7ebf-49be-a5d7-7d0626f910e3%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.