mantid
                                
                                
                                
                                    mantid copied to clipboard
                            
                            
                            
                        Create Osiris scripts
Description of work. This PR create Powder Diffraction Scripts for the OSIRIS Scripts The ultimate goal of these scripts is that they be able to:
- Sum multiple runs together accounting for OSIRIS's drange system for smooth continuous curves.
 - Inteligent run number control
 - output different PDF data forms (d-spacing by default)
 - supports masking of bad detectors
 - vanadium correction
 - multiple scattering correction
 - absorbtion correction
 
Report to: Sanghamitra
To test: Contact me for calibration files
from isis_powder.osiris import Osiris
osiris_focus = Osiris(user_name="Calib",
                      output_directory=r"C:\Users\wey38795\Documents\pr_test_files\OsirisCalibrationFiles\output",   #directory above cycle number 
                      config_file=r"C:\Users\wey38795\Documents\pr_test_files\OsirisCalibrationFiles\Calibration.yaml",
                      calibration_directory=r"C:\Users\wey38795\Documents\pr_test_files\OsirisCalibrationFiles\Calibration_files",
                      calibration_mapping_file=r"C:\Users\wey38795\Documents\pr_test_files\OsirisCalibrationFiles\Calibration_files\osiris_run_mapping.yaml")
osiris_focus.run_diffraction_focusing(run_number="119977-119988",
                                      merge_drange=False, 
                                      subtract_empty_instrument=True, 
                                      vanadium_normalisation=False)
Fixes #33666
Reviewer
Please comment on the following (full description):
Code Review
- Is the code of an acceptable quality?
 - Does the code conform to the coding standards?
 - Are the unit tests small and test the class in isolation?
 - If there is GUI work does it follow the GUI standards?
 - If there are changes in the release notes then do they describe the changes appropriately?
 - Are the release notes saved in a separate file, using Issue or PR number for file name and in the correct location?
 
Functional Tests
- Do changes function as described? Add comments below that describe the tests performed?
 - Do the changes handle unexpected situations, e.g. bad input?
 - Has the relevant (user and developer) documentation been added/updated?
 
Does everything look good? Mark the review as Approve. A member of @mantidproject/gatekeepers will take care of it.