parameters: (ws_to_correct, multiple_scattering, sample_details_obj, is_vanadium)
return_statement: return ws_to_correct
docstring: Calculates vanadium absorption corrections for the specified workspace. The workspace
      should have any monitor spectra masked before being passed into this method. Additionally
      it takes details of the sample container and sets the sample geometry to a cylinder with
      the specified geometry. This function uses Mayers Sample Correction to perform the corrections.
      :param ws_to_correct: The workspace to apply the sample corrections to
      :param multiple_scattering: True if the effects of multiple scattering should be accounted for, else False
      :param sample_details_obj: The SampleDetails object in a checked state which describes the sample
      to ensure a none elemental formula has associated number density
      :param is_vanadium: Whether the sample is a vanadium
      :return: The workspace with corrections applied
docstring_summary: Calculates vanadium absorption corrections for the specified workspace. The workspace
      should have any monitor spectra masked before being passed into this method. Additionally
      it takes details of the sample container and sets the sample geometry to a cylinder with
      the specified geometry. This function uses Mayers Sample Correction to perform the corrections.
      :param ws_to_correct: The workspace to apply the sample corrections to
      :param multiple_scattering: True if the effects of multiple scattering should be accounted for, else False
      :param sample_details_obj: The SampleDetails object in a checked state which describes the sample
      to ensure a none elemental formula has associated number density
      :param is_vanadium: Whether the sample is a vanadium
      :return: The workspace with corrections applied
docstring_tokens: Calculates vanadium absorption corrections for the specified workspace . The workspace should have any monitor spectra masked before being passed into this method . Additionally it takes details of the sample container and sets the sample geometry to a cylinder with the specified geometry . This function uses Mayers Sample Correction to perform the corrections . : param ws_to_correct : The workspace to apply the sample corrections to : param multiple_scattering : True if the effects of multiple scattering should be accounted for else False : param sample_details_obj : The SampleDetails object in a checked state which describes the sample to ensure a none elemental formula has associated number density : param is_vanadium : Whether the sample is a vanadium : return : The workspace with corrections applied
function: def _calculate__cylinder_absorb_corrections(ws_to_correct, multiple_scattering, sample_details_obj, is_vanadium):
      """
      Calculates vanadium absorption corrections for the specified workspace. The workspace
      should have any monitor spectra masked before being passed into this method. Additionally
      it takes details of the sample container and sets the sample geometry to a cylinder with
      the specified geometry. This function uses Mayers Sample Correction to perform the corrections.
      :param ws_to_correct: The workspace to apply the sample corrections to
      :param multiple_scattering: True if the effects of multiple scattering should be accounted for, else False
      :param sample_details_obj: The SampleDetails object in a checked state which describes the sample
      to ensure a none elemental formula has associated number density
      :param is_vanadium: Whether the sample is a vanadium
      :return: The workspace with corrections applied
      """
      _setup_sample_for_cylinder_absorb_corrections(ws_to_correct=ws_to_correct,
                                                    sample_details_obj=sample_details_obj)
      ws_to_correct = _do_cylinder_absorb_corrections(ws_to_correct=ws_to_correct,
                                                      multiple_scattering=multiple_scattering,
                                                      is_vanadium=is_vanadium)
      return ws_to_correct
function_tokens: def _calculate__cylinder_absorb_corrections ( ws_to_correct , multiple_scattering , sample_details_obj , is_vanadium ) : _setup_sample_for_cylinder_absorb_corrections ( ws_to_correct = ws_to_correct , sample_details_obj = sample_details_obj ) ws_to_correct = _do_cylinder_absorb_corrections ( ws_to_correct = ws_to_correct , multiple_scattering = multiple_scattering , is_vanadium = is_vanadium ) return ws_to_correct