parameters: (calibration_runs, instrument, offset_file_name, grouping_file_name, calibration_dir,
                         rebin_1_params, rebin_2_params, cross_correlate_params, get_det_offset_params, original_cal)
return_statement: return focused
docstring: Create a calibration file from (usually) a ceria run
      :param calibration_runs: Run number(s) for this run
      :param instrument: The GEM instrument object
      :param offset_file_name: Name of the file to write detector offset information to
      :param grouping_file_name: Name of grouping calibration file
      :param calibration_dir: Path to directory containing calibration information
      :param rebin_1_params: Parameters for the first rebin step (as a string in the usual format)
      :param rebin_2_params: Parameters for the second rebin step (as a string in the usual format)
      :param cross_correlate_params: Parameters for CrossCorrelate (as a dictionary PropertyName: PropertyValue)
      :param get_det_offset_params: Parameters for GetDetectorOffsets (as a dictionary PropertyName: PropertyValue)
      :param original_cal: path to calibration file to adjust
docstring_summary: Create a calibration file from (usually) a ceria run
      :param calibration_runs: Run number(s) for this run
      :param instrument: The GEM instrument object
      :param offset_file_name: Name of the file to write detector offset information to
      :param grouping_file_name: Name of grouping calibration file
      :param calibration_dir: Path to directory containing calibration information
      :param rebin_1_params: Parameters for the first rebin step (as a string in the usual format)
      :param rebin_2_params: Parameters for the second rebin step (as a string in the usual format)
      :param cross_correlate_params: Parameters for CrossCorrelate (as a dictionary PropertyName: PropertyValue)
      :param get_det_offset_params: Parameters for GetDetectorOffsets (as a dictionary PropertyName: PropertyValue)
      :param original_cal: path to calibration file to adjust
docstring_tokens: Create a calibration file from ( usually ) a ceria run : param calibration_runs : Run number ( s ) for this run : param instrument : The GEM instrument object : param offset_file_name : Name of the file to write detector offset information to : param grouping_file_name : Name of grouping calibration file : param calibration_dir : Path to directory containing calibration information : param rebin_1_params : Parameters for the first rebin step ( as a string in the usual format ) : param rebin_2_params : Parameters for the second rebin step ( as a string in the usual format ) : param cross_correlate_params : Parameters for CrossCorrelate ( as a dictionary PropertyName : PropertyValue ) : param get_det_offset_params : Parameters for GetDetectorOffsets ( as a dictionary PropertyName : PropertyValue ) : param original_cal : path to calibration file to adjust
function: def adjust_calibration(calibration_runs, instrument, offset_file_name, grouping_file_name, calibration_dir,
                         rebin_1_params, rebin_2_params, cross_correlate_params, get_det_offset_params, original_cal):
      """
      Create a calibration file from (usually) a ceria run
      :param calibration_runs: Run number(s) for this run
      :param instrument: The GEM instrument object
      :param offset_file_name: Name of the file to write detector offset information to
      :param grouping_file_name: Name of grouping calibration file
      :param calibration_dir: Path to directory containing calibration information
      :param rebin_1_params: Parameters for the first rebin step (as a string in the usual format)
      :param rebin_2_params: Parameters for the second rebin step (as a string in the usual format)
      :param cross_correlate_params: Parameters for CrossCorrelate (as a dictionary PropertyName: PropertyValue)
      :param get_det_offset_params: Parameters for GetDetectorOffsets (as a dictionary PropertyName: PropertyValue)
      :param original_cal: path to calibration file to adjust
      """
      input_ws_list = common.load_current_normalised_ws_list(run_number_string=calibration_runs, instrument=instrument,
                                                             input_batching=INPUT_BATCHING.Summed)
  
      input_ws = input_ws_list[0]
      mantid.ApplyDiffCal(InstrumentWorkspace=input_ws, CalibrationFile=original_cal)
      input_ws = mantid.ConvertUnits(InputWorkspace=input_ws, Target="dSpacing")
      mantid.ApplyDiffCal(InstrumentWorkspace=input_ws, ClearCalibration=True)
      offset_file = os.path.join(calibration_dir, offset_file_name)
      focused = _calibration_processing(calibration_dir, calibration_runs, cross_correlate_params, get_det_offset_params,
                                        grouping_file_name, input_ws, instrument, offset_file, rebin_1_params,
                                        rebin_2_params)
      _adjust_cal_file(original_cal, offset_file)
      return focused
function_tokens: def adjust_calibration ( calibration_runs , instrument , offset_file_name , grouping_file_name , calibration_dir , rebin_1_params , rebin_2_params , cross_correlate_params , get_det_offset_params , original_cal ) : input_ws_list = common . load_current_normalised_ws_list ( run_number_string = calibration_runs , instrument = instrument , input_batching = INPUT_BATCHING . Summed ) input_ws = input_ws_list [ 0 ] mantid . ApplyDiffCal ( InstrumentWorkspace = input_ws , CalibrationFile = original_cal ) input_ws = mantid . ConvertUnits ( InputWorkspace = input_ws , Target = "dSpacing" ) mantid . ApplyDiffCal ( InstrumentWorkspace = input_ws , ClearCalibration = True ) offset_file = os . path . join ( calibration_dir , offset_file_name ) focused = _calibration_processing ( calibration_dir , calibration_runs , cross_correlate_params , get_det_offset_params , grouping_file_name , input_ws , instrument , offset_file , rebin_1_params , rebin_2_params ) _adjust_cal_file ( original_cal , offset_file ) return focused