Skip to content
Snippets Groups Projects
This project is mirrored from https://github.com/mantidproject/mantid.git. Pull mirroring updated .
  1. Apr 08, 2020
  2. Apr 07, 2020
    • Gemma Guest's avatar
      Move helper functions into a class · c0aee984
      Gemma Guest authored
      This means we can hide the parsing function that takes an xml string from the public interface and add a friend class to test this.
      It also means that getRuns() can be called multiple times with different criteria without having to re-parse the file.
      
      Re #26897
      c0aee984
    • Giovanni Di Siena's avatar
      Replace boost::shared with std::shared · 11994bc3
      Giovanni Di Siena authored and Gigg, Martyn Anthony's avatar Gigg, Martyn Anthony committed
      In places other substitutions have been made, e.g
      Clang does not yet specialize std::shared_ptr for T[]. Vector
      has been used instead. The operator[] methods were incorrectly
      marked const but returning a non-const reference - this has been fixed.
      Refs #25842
      11994bc3
  3. Apr 06, 2020
    • Gemma Guest's avatar
      Add helper file for parsing an ISIS journal file · 4c9fcf6e
      Gemma Guest authored
      Adds a couple of generic functions for requesting data from a journal. The main work is done by a function that takes the file contents as a string so that this can be easily tested. A wrapper function allows the file to first be fetched from a URL constructed for the instrument and cycle.
      
      Also adds a couple of functions for requesting the list of cycles, again with one function taking the file contents and another which finds the URL for the instrument.
      
      Re #26897
      4c9fcf6e
  4. Apr 01, 2020
  5. Mar 31, 2020
  6. Mar 26, 2020
  7. Mar 25, 2020
  8. Mar 24, 2020
  9. Mar 23, 2020
  10. 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
      clang format whitespace changes · 9ac42d37
      Nick Draper authored
      9ac42d37
    • Nick Draper's avatar
      Updated mantid copyright statement to add CSNS · 98cdc389
      Nick Draper authored
      Also updated class_maker.py
      98cdc389
  11. Mar 06, 2020
  12. Mar 05, 2020
  13. Mar 03, 2020
  14. Feb 28, 2020
  15. Feb 20, 2020
  16. Feb 19, 2020
Loading