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 24, 2020
  5. Mar 23, 2020
  6. 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
  7. Mar 06, 2020
  8. Mar 05, 2020
  9. Mar 03, 2020
  10. Feb 28, 2020
  11. Feb 20, 2020
  12. Feb 19, 2020
  13. Feb 17, 2020
    • Harriet Brown's avatar
      Fix clang format failures. · d67b8f86
      Harriet Brown authored
      d67b8f86
    • Harriet Brown's avatar
      Create SaveRMCProfile · 81203149
      Harriet Brown authored
      This commit creates an algorithm `SaveRMCProfile` to output an ascii file with the format corresponding to a file used by the RMCProfile package. the output file contains only the x and y data from a workspace with a header containing the number of y values in the file on the first line, and on the second line the type of function contained within and a title for the data.
      
      re: #27774
      81203149
  14. Feb 14, 2020
  15. Feb 13, 2020
  16. Feb 12, 2020
    • Anthony Lim's avatar
      refs #27634 clang for PSI data loader · 83da64b1
      Anthony Lim authored
      83da64b1
    • Danny Hindson's avatar
      Changes to support loading multi-part mesh environment from spec xml file · 7a20e4dd
      Danny Hindson authored
      The format of the sample environment xml file has been extended to support
      loading a .stl file for each environment component. An example spec file
      has been created in ISIS/Pearl.xml. This can be used when running the
      Algorithm SetSample
      Various SampleEnvironmentXXX units have been moved out the Geometry package
      into the DataHandling package to facilitate this because they needed to
      access the STL loading code in DataHandling
      SetSample contains some features for overriding the sample geometry if the
      geometry is a CSGObject. This has been sidestepped for mesh geometries.
      The methods setId and setMaterial have been moved up to IObject because
      it's useful to have them applicable to all objects (CSG, mesh)
      Some of the repeated code in SetSample, LoadSampleEnvironment (and now
      SampleEnvironmentSpecParser) has been centralised in a new class LoadStlFactory
      Also changed container logic so that if there's only one container specified
      in the env spec file you don't need to specify it in SetSample
      Centralise code relating to scaling mesh vertices and handling of units
      into the LoadShape class and rename it MeshFileIO now that SaveStl is also
      descended from this class
      Move repeated code to choose Ascii or binary STL reader into a factory class
      7a20e4dd
  17. Feb 11, 2020
  18. Feb 07, 2020
    • Harriet Brown's avatar
      Create saveRMCProfile algorithm framework · 720e925d
      Harriet Brown authored
      This creates the framework for a saveRMCProfile algorithm that would be used for saving spectral density data in a format that can be read by RMCProfile.
      TODO get propper format of metadata
      
      re: #27774
      720e925d
    • Harriet Brown's avatar
      Reformat SavePDFGui to use functions to write · a190f4a7
      Harriet Brown authored
      This commit refactors the the SavePDFGui algorithm to have two seperate functions, one for metadata and one for axis data. This makes any future changes simpler and makes the algorithm easy to duplicate with different metadata for different formats
      
      re: #27774
      a190f4a7
    • Harriet Brown's avatar
      Add description to SavePDFGui · f332c411
      Harriet Brown authored
      This commit adds a decstrings of the SavePDFGui.
      
      re: #27774
      f332c411
  19. Feb 06, 2020
  20. Jan 30, 2020
Loading