Skip to content
Snippets Groups Projects
This project is mirrored from https://github.com/mantidproject/mantid.git. Pull mirroring updated .
  1. Mar 31, 2020
  2. Mar 26, 2020
  3. Mar 25, 2020
  4. Mar 20, 2020
    • Danny Hindson's avatar
      Add ability to load measured attenuation profile for material · 74316a4b
      Danny Hindson authored
      Add feature where an externally generated attenuation profile can be loaded into
      the material definition from a .DAT text file. This will override the normal
      exp(-alpha*thickness) calculation of the attenuation. The new feature was requested
      as part of the absorption calculation for the Pearl instrument where some parts
      of the environment are crystalline
      
      Found the lookup\interpolation on the loaded profile was slowing down the absorption
      Monte Carlo calculation.
      So improved performance of Kernel::Interpolation. Changed it to use vector of pairs
      instead of two separate vectors to reduce amount of navigation around vectors
      
      Considered adding feature into AttenuationProfile where I add any interpolated points
      into the override attenuation profile to prevent interpolation next iteration of
      Monte Carlo simulation. However wasn't convinced this was going to be thread-safe
      during the parallel part of the absorption calculation - may revisit this. While doing
      this investigation I fixed the following issues with the function Interpolation::AddPoint:
      
      a) it doesn't add the same point twice
      b) it reuses the lower_bound function rather than stepping through the vector sequentially
      
      I removed the exception from findIndexOfNextLargerValue because the end()
      iterator is a valid result if the x value supplied equals the last x value
      already in the vector. Could have left check in for begin() but didn't seem
      much point
      
      Finally - the interpolation outside the range is not v good. The data at the extremes
      is noisy so we end up extrapolating based on random gradient in extreme 2 points. Need
      to either fit or use more points to determine gradient
      74316a4b
    • Nick Draper's avatar
      Updated mantid copyright statement to add CSNS · 98cdc389
      Nick Draper authored
      Also updated class_maker.py
      98cdc389
  5. Mar 06, 2020
  6. Mar 05, 2020
    • David Fairbrother's avatar
      Re #26260 Bump GTest to 1.10.0 · b6d965a4
      David Fairbrother authored
      Bumps the version of GTest to 1.10.0, removes the previous patching
      steps, which are no longer needed. Removes the extra handling which is
      provided in upstreams CMake, such as managing include directories
      b6d965a4
  7. Mar 02, 2020
  8. Feb 03, 2020
    • Danny Hindson's avatar
      Only use NumberOfWavelengthPoints if resimulating tracks · d48169a8
      Danny Hindson authored
      A new boolean parameter SimulateTracksForEachWavelength has been added to
      the MonteCarloAbsorption algorithm. This exposes a switch on the MCAbsorptionStrategy
      that was present before this change but was hardcoded to False.
      
      The parameter NumberOfWavelengthPoints is only required if SimulateTracksForEachWavelength
      is set to True. This change means that an attenuation factor is calculated for all wavelength
      bins if SimulateTracksForEachWavelength=false. To facilitate this a performance enhancement
      has been made to the Material class to calculate the total scatter cross section and the
      absorption cross section once when the Material rather than every time these cross sections
      are retrieved by the MonteCarloAbsorption calculation.
      
      This change required some unit and system tests to be updated eg ILLDirectGeometryReductionTest
      has been changed to remove the NumberOfWavelengthPoints parameter and the reference file to be
      updated. To make this test more robust I have increased the number of scenarios used in the MC
      simulation from 5000 to 20000
      d48169a8
  9. Jan 28, 2020
  10. Jan 09, 2020
  11. Dec 11, 2019
  12. Dec 04, 2019
  13. Nov 26, 2019
  14. Nov 25, 2019
  15. Nov 20, 2019
  16. Nov 11, 2019
  17. Nov 08, 2019
  18. Nov 07, 2019
  19. Nov 06, 2019
  20. Oct 31, 2019
    • Danny Hindson's avatar
      Incorporate review comments · 393d47be
      Danny Hindson authored
      Main change is to add an overload of registerFeatureUsage that accepts a
      simple string in addition to the existing method that takes a vector of strings
      
      Update some further calls to registerFeatureUsage that had appeared in master
      Also change trimming behaviour so trimming of feature names is done on copy
      rather than in place
      393d47be
    • Danny Hindson's avatar
      Modify registerFeatureUsage in Usage Service to reduce misuse · 1af6118d
      Danny Hindson authored
      Now accepts:
      - an enum for feature type rather than a string eg Algorithm
      - a vector of strings for the feature name instead of string (eg class1->method1)
      
      Also updated pre-existing calls to registerFeatureUsage in C++ and Python
      1af6118d
  21. Oct 22, 2019
  22. Sep 04, 2019
  23. Aug 27, 2019
    • Gigg, Martyn Anthony's avatar
      Update codebase ready for std=c++17 · 6c918cc5
      Gigg, Martyn Anthony authored
      - Remove bind1st/bind2nd usage.
      - Avoids an internal compiler error in gcc with getProperty.
      - Adds wrapper around sip executable to process the output and
        remove the throw specifiers. They are not allowed in C++ 17.
      Refs #26261
      6c918cc5
  24. Aug 22, 2019
  25. Aug 07, 2019
Loading