<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Kurene</author_name>
  <author_url>https://blog.hatena.ne.jp/Kurene/</author_url>
  <blog_title>Wizard Notes</blog_title>
  <blog_url>https://www.wizard-notes.com/</blog_url>
  <categories>
    <anon>Python</anon>
    <anon>NumPy</anon>
    <anon>音響音楽信号処理</anon>
  </categories>
  <description>音信号処理のプログラムを書いていると、 import numpy as np y_array = np.log10(x_array) のように対数をとることがよくあります。 ここで、x_array には 0 が含まれていることが多々あり、その場合には RuntimeWarning: divide by zero encountered in log10 と warning が出力されてしまいます。 これを手際よく解決する手段を調べてみると、numpy.errstate()という関数があることが分かりました。 numpy.errstate — NumPy v1.19 Manual 使用例： im…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.wizard-notes.com%2Fentry%2Fpython%2Fnumpy-errstate-log&quot; title=&quot;numpy.errstateで対数をとった時のwarningを無視する - Wizard Notes&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/K/Kurene/20210102/20210102231146.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-01-02 23:12:26</published>
  <title>numpy.errstateで対数をとった時のwarningを無視する</title>
  <type>rich</type>
  <url>https://www.wizard-notes.com/entry/python/numpy-errstate-log</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
