Ejemplo n.º 1
0
 def _create_vanadium(self, run_number_string, do_absorb_corrections):
     """
     Creates a vanadium calibration - should be called by the concrete instrument
     :param run_number_string : The user input string for any run within the cycle
     to help us determine the correct vanadium to create later
     :param do_absorb_corrections: Set to true if absorption corrections should be applied
     :return: d_spacing focused vanadium group
     """
     self._is_vanadium = True
     run_details = self._get_run_details(run_number_string)
     return calibrate.create_van(instrument=self, run_details=run_details,
                                 absorb=do_absorb_corrections)
Ejemplo n.º 2
0
 def _create_vanadium(self, run_number_string, do_absorb_corrections):
     """
     Creates a vanadium calibration - should be called by the concrete instrument
     :param run_number_string : The user input string for any run within the cycle
     to help us determine the correct vanadium to create later
     :param do_absorb_corrections: Set to true if absorption corrections should be applied
     :return: d_spacing focused vanadium group
     """
     self._is_vanadium = True
     run_details = self._get_run_details(run_number_string)
     return calibrate.create_van(instrument=self, run_details=run_details,
                                 absorb=do_absorb_corrections)
Ejemplo n.º 3
0
 def _create_calibration_vanadium(self, vanadium_runs, empty_runs, output_file_name=None, num_of_splines=None,
                                  do_absorb_corrections=True, gen_absorb_correction=False):
     return calibrate.create_van(instrument=self, van=vanadium_runs, empty=empty_runs,
                                 output_van_file_name=output_file_name, num_of_splines=num_of_splines,
                                 absorb=do_absorb_corrections, gen_absorb=gen_absorb_correction)