parameters: (self,sample_run,nchunk)
return_statement: return bleed_mask
docstring: Calculate TOF-chunk specific bleed corrections, necessary in mutlirep mode
docstring_summary: Calculate TOF-chunk specific bleed corrections, necessary in mutlirep mode
docstring_tokens: Calculate TOF - chunk specific bleed corrections necessary in mutlirep mode
function: def _do_bleed_corrections(self,sample_run,nchunk):
          """Calculate TOF-chunk specific bleed corrections, necessary in mutlirep mode
          """
          if not self.prop_man.diag_bleed_test:
              return None
  
          CUR_bleed_masks, failures = diagnostics.do_bleed_test(sample_run, self.prop_man.bleed_maxrate, self.prop_man.bleed_pixels)
          if failures > 0:
              diagnostics.add_masking(sample_run.get_workspace(),CUR_bleed_masks)
              bleed_mask = CUR_bleed_masks
          else:
              DeleteWorkspace(CUR_bleed_masks)
              bleed_mask = None
          self.prop_man.log("*** Bleeding test for chunk #{0} masked {1} pixels".format(nchunk,failures),'notice')
          return bleed_mask
function_tokens: def _do_bleed_corrections ( self , sample_run , nchunk ) : if not self . prop_man . diag_bleed_test : return None CUR_bleed_masks , failures = diagnostics . do_bleed_test ( sample_run , self . prop_man . bleed_maxrate , self . prop_man . bleed_pixels ) if failures > 0 : diagnostics . add_masking ( sample_run . get_workspace ( ) , CUR_bleed_masks ) bleed_mask = CUR_bleed_masks else : DeleteWorkspace ( CUR_bleed_masks ) bleed_mask = None self . prop_man . log ( "*** Bleeding test for chunk #{0} masked {1} pixels" . format ( nchunk , failures ) , 'notice' ) return bleed_mask