=================== Diffraction Changes =================== .. contents:: Table of Contents :local: Powder Diffraction ------------------ New features ############ - :ref:`HRPD reduction scripts ` now support the boolean option ``fit_prompt_pulse`` to fit and subtract prompt pulse (as opposed to the default method of masking of prompt pulse in TOF). You can either specify this option in the configuration file or with ``hrpd.HRPD(fit_prompt_pulse=True)``. - Algorithm :ref:`AlignAndFocusPowder ` now supports logarithmic compression. - Algorithm :ref:`SNSPowderReduction ` now takes advantage of a new logarithmic compression technique in :ref:`AlignAndFocusPowderFromFiles ` and :ref:`AlignAndFocusPowder `. - Algorithm :ref:`AlignAndFocusPowderFromFiles ` now takes advantage of a new compression technique in :ref:`LoadEventNexus ` and :ref:`AlignAndFocusPowder `. - Algorithm :ref:`LoadEventAndCompress ` now takes advantage of a new compression technique in :ref:`LoadEventNexus `. - Algorithms :ref:`FitPeaks ` and :ref:`PDCalibration ` now do a check after the fit for the minimum signal-to-sigma ratio, where peaks with a signal below the provided threshold will be rejected. Bugfixes ############ - Algorithm :ref:`AlignAndFocusPowder ` now runs compression when ``logarithmic`` is selected. - Applying absorption correction with missing sample details in :ref:`powder diffraction scripts ` now displays a clearer error message: .. figure:: ../../images/6_11_release/improved_error_message.png :width: 600px - Algorithm :ref:`DiffractionFocussing ` is now properly accumulating data when :ref:`CompressEvents ` is run prior to it in ``PreserveEvents=False`` mode. - Algorithm :ref:`PPDCalibration ` is once again masking input pixels with empty event lists (bug was present since 6.9.0). - :ref:`Calibration Diagnostics ` plotting now successfully extracts the solid angle of detectors. - :ref:`Polaris diffraction ` routine ``create_total_scattering_pdf`` no longer causes an unhandled error when calculating cross-sections of multi-atom unit cells for pdf normalisation. Engineering Diffraction ----------------------- Bugfixes ############ - The :ref:`fitting tab ` of the :ref:`Engineering Diffraction interface` no longer crashes when a fit is re-run for a function like a ``PseudoVoigt`` that contains a ``FWHM`` parameter as the peak function. Single Crystal Diffraction -------------------------- New features ############ - New algorithm :ref:`RotateSampleShape ` that defines the initial orientation of a sample with respect to the beam and instrument. - :ref:`IntegratePeaksSkew ` is better at determining background bins by minimising third-moment (skew). This is achieved by forcing skew > 0 (minimum skew we would expect in background). This change stops peak mask of :ref:`IntegratePeaksSkew ` including too many pixels due to small diffuse scattering: .. figure:: ../../images/6_11_release/single-crystal-peak-background-edited.png :width: 500px - New option not to integrate peaks that include a masked detector in the following algorithms: - :ref:`IntegratePeaksSkew ` - :ref:`IntegratePeaksShoeboxTOF ` - :ref:`IntegratePeaks1DProfile ` - ISIS single-crystal reduction classes now have the method ``find_consistent_ub`` to find a UB that preserves indexing given a reference workspace (at different goniometer angle(s)). - ISIS single-crystal reduction classes now have the method ``optimize_goniometer_axis`` to optimise the goniometer axes and angles given a sequence of workspaces at different goniometer angle with consistent UBs. - ISIS single-crystal reduction classes now have the method ``calc_absorption_weighted_path_lengths`` that calculates tbar for each peak (saved in a column of the table) and optionally apply an attenuation correction to the integrated intensity of each peak. By default the correction will be applied if the class has the property ``scale_integrated = True``. - Algorithm :ref:`AddAbsorptionWeightedPathLengths ` now allows lean peaks to be used. There is also an option to apply the correction. - New algorithm :ref:`FindMultipleUMatrices ` to find multiple UB matrices (given lattice parameters) for samples with multiple domains or spurious peaks. - This algorithm will use the lattice parameters and spacegroup provided to optimise a number (``NumberOfUBs``) of UB matrices (B is hard-coded due to the lattice parameters provided) and return a group of peak workspaces (one for each UB) containing the peaks that are indexed most accurately by that UB. The algorithm is useful for finding a single UB in the presence of spurious peaks, or finding multiple UBs when there are multiple domains. .. figure:: ../../images/6_11_release/FindMultipleUMatrices.png :width: 400px - Algorithm :ref:`ShowPossibleCells ` now has a new output property, ``Cells``, that includes the cell information. - New algorithm :ref:`SaveMDHistoToVTK ` that saves a :ref:`MDHistoWorkspace ` as a ``VTK`` file so that it can be visualized by ``Paraview``. - :ref:`IntegratePeaksShoeboxTOF ` has improved optimisation for shoebox position - would previously be centred on nearby stronger peaks if present. - Execution time of :ref:`IntegratePeaks1DProfile ` has improved by a factor of ten. Bugfixes ############ - :ref:`LoadWANDSCD ` now keeps the ``sgl`` and ``sgu`` angles set by the goniometer. - :ref:`ConverWANDSCDToQ ` simplifies the underlying code by using histograms directly. :ref:`Release 6.11.0 `