original_docstring: 
          Change the reference white point of the space by setting a new 
          illuminant and observer
          
          :param illuminant: The new illuminant
          :param observer: The new observer
          :return: self
          
docstring: Change the reference white point of the space by setting a new
  illuminant and observer
docstring_tokens: Change the reference white point of the space by setting a new illuminant and observer
code: def change_white_point(self, illuminant: Illuminant, observer: Observer):
          """
          Change the reference white point of the space by setting a new 
          illuminant and observer
          
          :param illuminant: The new illuminant
          :param observer: The new observer
          :return: self
          """
          from chromathicity.convert import xyz2xyz, convert
  
          source_white_point = self._illuminant.get_white_point(self._observer)
          destination_white_point = illuminant.get_white_point(observer)
          if np.allclose(source_white_point, destination_white_point):
              self._illuminant = illuminant
              self._observer = observer
              return self
  
          source_xyz = convert(self._data,
                               from_space=self.__spacename__,
                               to_space=names.XYZ,
                               illuminant=illuminant,
                               observer=observer,
                               rgbs=self._rgbs,
                               caa=self._caa)
          dest_xyz = xyz2xyz(source_xyz,
                             source_white_point=source_white_point,
                             destination_white_point=destination_white_point,
                             axis=self._axis,
                             caa=self._caa)
          self._data = convert(dest_xyz,
                               from_space=names.XYZ,
                               to_space=self.__spacename__,
                               illuminant=illuminant,
                               observer=observer,
                               rgbs=self._rgbs,
                               caa=self._caa)
          self._illuminant = illuminant
          self._observer = observer
          return self
code_tokens: def change_white_point ( self , illuminant : Illuminant , observer : Observer ) : from chromathicity . convert import xyz2xyz , convert source_white_point = self . _illuminant . get_white_point ( self . _observer ) destination_white_point = illuminant . get_white_point ( observer ) if np . allclose ( source_white_point , destination_white_point ) : self . _illuminant = illuminant self . _observer = observer return self source_xyz = convert ( self . _data , from_space = self . __spacename__ , to_space = names . XYZ , illuminant = illuminant , observer = observer , rgbs = self . _rgbs , caa = self . _caa ) dest_xyz = xyz2xyz ( source_xyz , source_white_point = source_white_point , destination_white_point = destination_white_point , axis = self . _axis , caa = self . _caa ) self . _data = convert ( dest_xyz , from_space = names . XYZ , to_space = self . __spacename__ , illuminant = illuminant , observer = observer , rgbs = self . _rgbs , caa = self . _caa ) self . _illuminant = illuminant self . _observer = observer return self
short_docstring: Change the reference white point of the space by setting a new
  illuminant and observer
short_docstring_tokens: Change the reference white point of the space by setting a new illuminant and observer
comment: """
          Change the reference white point of the space by setting a new 
          illuminant and observer
          
          :param illuminant: The new illuminant
          :param observer: The new observer
          :return: self
          """