def load_batch_local_params_from_memory(self, batchID, BirthResults):
    LPchunk = self.LPmemory[batchID]
    if self.hasMove('birth') and LPchunk is not None:
      if BirthResults is not None and len(BirthResults) > 0:
        # new components have been "born", so discard old results
        #   since they no longer matter
        LPchunk = None

    if self.hasMove('merge') and LPchunk is not None:
      for MInfo in self.MergeLog:
        kA = MInfo['kA']
        kB = MInfo['kB']
        for key in self.memoLPkeys:
          if kB >= LPchunk[key].shape[1]:
            # Birth occured in previous lap, after this batch was visited.
            return None
          LPchunk[key][:,kA] = LPchunk[key][:,kA] + LPchunk[key][:,kB]
          LPchunk[key] = np.delete(LPchunk[key], kB, axis=1)
    return LPchunk

  ######################################################### Save to memory
  #########################################################
Extract 16 bits usage id from full usage id (32 bits)
dataset/ETHPy150Open daeilkim/refinery/refinery/bnpy/bnpy-dev/bnpy/learnalg/MemoizedOnlineVBLearnAlg.py/MemoizedOnlineVBLearnAlg.load_batch_local_params_from_memory--crossover with--dataset/ETHPy150Open rene-aguirre/pywinusb/pywinusb/hid/core.py/get_short_usage_id