parameters: (self, run: str, group: str, background: float)
docstring: Updates the background in the view and model using the provided values.
docstring_summary: Updates the background in the view and model using the provided values.
docstring_tokens: Updates the background in the view and model using the provided values .
function: def _update_background_in_view_and_model(self, run: str, group: str, background: float) -> None:
          """Updates the background in the view and model using the provided values."""
          if self.view.is_run_group_displayed(run, group):
              self.view.set_background(run, group, background)
          self.model.set_background(run, group, background)
function_tokens: def _update_background_in_view_and_model ( self , run : str , group : str , background : float ) -> None : if self . view . is_run_group_displayed ( run , group ) : self . view . set_background ( run , group , background ) self . model . set_background ( run , group , background )