parameters: (self, unpickler)
docstring: Reconstruct the array.
docstring_summary: Reconstruct the array.
docstring_tokens: Reconstruct the array .
function: def read(self, unpickler):
          """Reconstruct the array."""
          filename = os.path.join(unpickler._dirname, self.filename)
          # Load the array from the disk
          # use getattr instead of self.allow_mmap to ensure backward compat
          # with NDArrayWrapper instances pickled with joblib < 0.9.0
          allow_mmap = getattr(self, 'allow_mmap', True)
          kwargs = {}
          if allow_mmap:
              kwargs['mmap_mode'] = unpickler.mmap_mode
          if "allow_pickle" in inspect.signature(unpickler.np.load).parameters:
              # Required in numpy 1.16.3 and later to aknowledge the security
              # risk.
              kwargs["allow_pickle"] = True
          array = unpickler.np.load(filename, **kwargs)
  
          # Detect byte order mis-match and swap as needed.
          array = _ensure_native_byte_order(array)
  
          # Reconstruct subclasses. This does not work with old
          # versions of numpy
          if (hasattr(array, '__array_prepare__') and
              self.subclass not in (unpickler.np.ndarray,
                                    unpickler.np.memmap)):
              # We need to reconstruct another subclass
              new_array = unpickler.np.core.multiarray._reconstruct(
                  self.subclass, (0,), 'b')
              return new_array.__array_prepare__(array)
          else:
              return array
function_tokens: def read ( self , unpickler ) : filename = os . path . join ( unpickler . _dirname , self . filename ) # Load the array from the disk # use getattr instead of self.allow_mmap to ensure backward compat # with NDArrayWrapper instances pickled with joblib < 0.9.0 allow_mmap = getattr ( self , 'allow_mmap' , True ) kwargs = { } if allow_mmap : kwargs [ 'mmap_mode' ] = unpickler . mmap_mode if "allow_pickle" in inspect . signature ( unpickler . np . load ) . parameters : # Required in numpy 1.16.3 and later to aknowledge the security # risk. kwargs [ "allow_pickle" ] = True array = unpickler . np . load ( filename , * * kwargs ) # Detect byte order mis-match and swap as needed. array = _ensure_native_byte_order ( array ) # Reconstruct subclasses. This does not work with old # versions of numpy if ( hasattr ( array , '__array_prepare__' ) and self . subclass not in ( unpickler . np . ndarray , unpickler . np . memmap ) ) : # We need to reconstruct another subclass new_array = unpickler . np . core . multiarray . _reconstruct ( self . subclass , ( 0 , ) , 'b' ) return new_array . __array_prepare__ ( array ) else : return array