class_docstr: Tests for AdaptiveScalarEncoder
docstr: Make sure we can fill in holes
docstr_tok: ["Make","sure","we","can","fill","in","holes"]
code: def testFillHoles(self):
      """Make sure we can fill in holes"""
      l = self._l
      decoded = l.decode(
          numpy.array([0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 1])
      )
      (fieldsDict, _) = decoded
      self.assertEqual(len(fieldsDict), 1)
  
      (ranges, _) = fieldsDict.values()[0]
      self.assertEqual(len(ranges), 1)
      self.assertSequenceEqual(ranges[0], [10, 10])
  
      decoded = l.decode(
          numpy.array([0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1])
      )
      (fieldsDict, _) = decoded
      self.assertEqual(len(fieldsDict), 1)
      (ranges, _) = fieldsDict.values()[0]
      self.assertEqual(len(ranges), 1)
      self.assertSequenceEqual(ranges[0], [10, 10])
  
file_path: nupic-legacy/tests/unit/nupic/encoders/adaptivescalar_test.py
imports: import tempfile
  import unittest
  import numpy
  from nupic.data import SENTINEL_VALUE_FOR_MISSING_DATA
  from nupic.encoders.adaptive_scalar import AdaptiveScalarEncoder
  from nupic.encoders.base import defaultDtype
label_desc: Use image node_id 5 for calling the AdaptiveScalarTest obj's underlying member method code with example usage: obj.testFillHoles() without return types