Commit a1c885f7 authored by Lynch, Vickie's avatar Lynch, Vickie
Browse files

Refs #16812 clang-format and release notes

parent faa7ca4b
......@@ -43,7 +43,8 @@ void CreatePeaksWorkspace::exec() {
Progress progress(this, 0, 1, NumberOfPeaks);
out->setInstrument(instWS->getInstrument());
out->mutableRun().setGoniometer(instWS->run().getGoniometer().getR(), false);
out->mutableRun().setGoniometer(instWS->run().getGoniometer().getR(),
false);
// Create some default peaks
for (int i = 0; i < NumberOfPeaks; i++) {
out->addPeak(Peak(out->getInstrument(),
......
......@@ -195,8 +195,7 @@ PeaksWorkspace::createPeak(Kernel::V3D QLabFrame,
Geometry::Goniometer goniometer = this->run().getGoniometer();
// create a peak using the qLab frame
auto peak =
new Peak(this->getInstrument(), QLabFrame, detectorDistance);
auto peak = new Peak(this->getInstrument(), QLabFrame, detectorDistance);
// Set the goniometer
peak->setGoniometerMatrix(goniometer.getR());
......
......@@ -30,6 +30,11 @@ Single Crystal Diffraction
:align: center
- Some improvements were done for creating peaks from python. :ref:`CreatePeaksWorkspace <algm-CreatePeaksWorkspace>`
copies the goniometer from the input MatrixWorkspace to PeaksWorkspace. createPeak for PeaksWorkspace copies goniometer
from PeaksWorkspace to peak. setGoniometer for a peak can be done from python and setQLabFrame and setQSampleFrame works
correctly now with one argument.
Engineering Diffraction
-----------------------
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment