docstr: specific tests for float type
docstr_tok: ["specific","tests","for","float","type"]
code: def test_extrema_float(self):
      """specific tests for float type"""
      data = np.array(
          [
              [
                  0.10,
                  0.11,
                  0.13,
                  0.14,
                  0.14,
                  0.15,
                  0.14,
                  0.14,
                  0.13,
                  0.11,
              ],
              [
                  0.11,
                  0.13,
                  0.15,
                  0.16,
                  0.16,
                  0.16,
                  0.16,
                  0.16,
                  0.15,
                  0.13,
              ],
              [
                  0.13,
                  0.15,
                  0.40,
                  0.40,
                  0.18,
                  0.18,
                  0.18,
                  0.60,
                  0.60,
                  0.15,
              ],
              [
                  0.14,
                  0.16,
                  0.40,
                  0.40,
                  0.19,
                  0.19,
                  0.19,
                  0.60,
                  0.60,
                  0.16,
              ],
              [
                  0.14,
                  0.16,
                  0.18,
                  0.19,
                  0.19,
                  0.19,
                  0.19,
                  0.19,
                  0.18,
                  0.16,
              ],
              [
                  0.15,
                  0.182,
                  0.18,
                  0.19,
                  0.204,
                  0.20,
                  0.19,
                  0.19,
                  0.18,
                  0.16,
              ],
              [
                  0.14,
                  0.16,
                  0.18,
                  0.19,
                  0.19,
                  0.19,
                  0.19,
                  0.19,
                  0.18,
                  0.16,
              ],
              [
                  0.14,
                  0.16,
                  0.80,
                  0.80,
                  0.19,
                  0.19,
                  0.19,
                  1.0,
                  1.0,
                  0.16,
              ],
              [
                  0.13,
                  0.15,
                  0.80,
                  0.80,
                  0.18,
                  0.18,
                  0.18,
                  1.0,
                  1.0,
                  0.15,
              ],
              [
                  0.11,
                  0.13,
                  0.15,
                  0.16,
                  0.16,
                  0.16,
                  0.16,
                  0.16,
                  0.15,
                  0.13,
              ],
          ],
          dtype=np.float32,
      )
      inverted_data = 1.0 - data
  
      out = extrema.h_maxima(data, 0.003)
      expected_result = np.array(
          [
              [0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
              [0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
              [0, 0, 1, 1, 0, 0, 0, 1, 1, 0],
              [0, 0, 1, 1, 0, 0, 0, 1, 1, 0],
              [0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
              [0, 0, 0, 0, 1, 0, 0, 0, 0, 0],
              [0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
              [0, 0, 1, 1, 0, 0, 0, 1, 1, 0],
              [0, 0, 1, 1, 0, 0, 0, 1, 1, 0],
              [0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
          ],
          dtype=np.uint8,
      )
  
      error = diff(expected_result, out)
      assert error < eps
  
      out = extrema.h_minima(inverted_data, 0.003)
      error = diff(expected_result, out)
      assert error < eps
  
imports: import math
  import unittest
  import numpy
  from numpy.testing import assert_equal
  from pytest import raises, warns
  from skimage._shared.testing import expected_warnings
  from skimage.morphology import extrema
label_desc: Use image node_id 4 for calling the TestExtrema obj's underlying member method code with example usage: obj.test_extrema_float() without return types