code: def P1(self, value):
          
          if value < self.P2:
              self._P1 = value
          else:
              raise InvalidFirstDisparityChangePenaltyError("P1 must be less "
                                                            "than P2.")
          self._replace_bm()
docs: Set private ``_P1`` and reset ``_block_matcher``.