class_docstr: Tests for AdaptiveScalarEncoder
docstr: Non-periodic encoder, min and max specified
docstr_tok: ["Non-periodic","encoder",",","min","and","max","specified"]
code: def testNonPeriodicEncoderMinMaxSpec(self):
      """Non-periodic encoder, min and max specified"""
  
      self.assertTrue(
          numpy.array_equal(
              self._l.encode(1),
              numpy.array(
                  [1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0],
                  dtype=defaultDtype,
              ),
          )
      )
      self.assertTrue(
          numpy.array_equal(
              self._l.encode(2),
              numpy.array(
                  [0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0],
                  dtype=defaultDtype,
              ),
          )
      )
      self.assertTrue(
          numpy.array_equal(
              self._l.encode(10),
              numpy.array(
                  [0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1],
                  dtype=defaultDtype,
              ),
          )
      )
  
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 3 for calling the AdaptiveScalarTest obj's underlying member method code with example usage: obj.testNonPeriodicEncoderMinMaxSpec() without return types