Ticket #4222 (closed: fixed)

Opened 9 years ago

Last modified 5 years ago

Detector-space PeakFinding

Reported by: Owen Arnold Owned by: Owen Arnold
Priority: critical Milestone: Release 2.0
Component: VATES Keywords:
Cc: Blocked By:
Blocking: Tester: Michael Reuter

Description

Pascal has developed a detector-space peak-finding algorithm to work on Workspace2D objects. This will need some work to get into Mantid. Need to adjust the output workspace types, add tests etc.

Attachments

findpeakssx.py (1.2 KB) - added by Owen Arnold 9 years ago.

Change History

comment:1 Changed 9 years ago by Owen Arnold

refs #4222. Change output workspace type.

Problems with Qvector generated Changeset: b15043114cc62889542fbc491a7198d1c481403d

comment:2 Changed 9 years ago by Owen Arnold

refs #4222 test original work

Changeset: 5a5e935aea345d73a06d384b3775fb90f7a1de12

comment:3 Changed 9 years ago by Janik Zikovsky

Revert "refs #4222 test original work"

This reverts commit 5a5e935aea345d73a06d384b3775fb90f7a1de12.

Changeset: 303846ce1dfcb6e416c8c93d528d6d3942b38737

comment:4 Changed 9 years ago by Janik Zikovsky

Refs #4222 just indentation fix

Changeset: 86ab307e61c3473ca1554a1dd9637b2ec40bd675

comment:5 Changed 9 years ago by Janik Zikovsky

Refs #4222 fix FindSXPeaks to use our convention for Q

Which is ki - kf, and no 2*pi factor

Changeset: d81c0fb21751fb2fd956e5b6b2503fb8be726c8c

comment:6 Changed 9 years ago by Owen Arnold

  • Status changed from new to accepted

comment:7 Changed 9 years ago by Owen Arnold

refs #4222. Cleanup algorithm and add tests.

Changeset: 869015589811ba4b6815a67a339aa490c0e0efba

comment:8 Changed 9 years ago by Owen Arnold

refs #4222. Fix GCC Errors and warnings.

Changeset: dd0b10db9a46394954a3659c7f1301c9387ae0ab

comment:9 Changed 9 years ago by Owen Arnold

refs #4222. Fix more GCC Errors and warnings.

Changeset: 4a5bf338c5df35f2a4ce860c46751644cbd107bf

comment:10 Changed 9 years ago by Owen Arnold

Still have more work to do.

  • Move to Crystal directory as suggested by Janik
  • Clean up existing code now that we have a good set of tests in place

comment:11 Changed 9 years ago by Owen Arnold

refs #4222. Fix type conversion warnings

Changeset: 4549683580a41100c8d625e3888daa7ae6a53a1c

comment:12 Changed 9 years ago by Owen Arnold

refs #4222. Fix bug in last commit. Fix warnings

Changeset: f7ad53fcc8b87750dc5b40be55b6b0fa8675d49c

comment:13 Changed 9 years ago by Owen Arnold

refs #4222 Move Algorithm to Crystal

Changeset: b940cd93c4a951ab13fbda96aba6498bd6e7f023

comment:14 Changed 9 years ago by Owen Arnold

comment:15 Changed 9 years ago by Owen Arnold

refs #4222 Add performance tests

Changeset: 3be1aaa6b6c5483e63a8106b0554d8b34e2b8e0a

comment:16 Changed 9 years ago by Owen Arnold

refs #4222 Parallelise FindSXPeaks

Changeset: 6243acef9b728b318fd52b729d8132c90eb12292

comment:17 Changed 9 years ago by Owen Arnold

refs #4222 Minor changes to algorithm + better docs

Changeset: 32d4ee958c9b4cce4980126c780452e8fc172b2f

comment:18 Changed 9 years ago by Owen Arnold

refs #4222. Fix test error.

Changeset: 960f7a2d2e2414881d01f9333bac12c9940352bf

comment:19 Changed 9 years ago by Owen Arnold

refs #4222. Fix test spurious test results.

Changeset: 57c952d318e45faeb61ab95985397a8a503b8572

comment:20 Changed 9 years ago by Russell Taylor

Sidestep known Intel compiler idiosyncrasy. Re #4222.

...that causes the compiler to hang indefinitely.

Changeset: 8a2b80f41ffda25ed258e707296fa8a192b3b911

comment:21 Changed 9 years ago by Owen Arnold

refs #4222 Fix for 1 bin.

Changeset: b7f83627e1ceb2182d9881ad73eadf927c72d349

comment:22 Changed 9 years ago by Owen Arnold

  • Status changed from accepted to verify
  • Resolution set to fixed

This has been tested out by one of your users and seems to be working okay.

Tester: Please contact me for workspaces since there are specific ones to use for testing. The algorithm seems to work best after running SmoothNeighbours first.

comment:23 Changed 9 years ago by Michael Reuter

  • Status changed from verify to verifying
  • Tester set to Michael Reuter

comment:24 Changed 9 years ago by Owen Arnold

Test parameters:

RadiusUnits to NumberOfPixels Radius to 3 NumberOfNeighbours to 35 WeightedSum to Flat

See http://www.mantidproject.org/SmoothNeighbours

You can just open up the original peaks workspace in the instrument view and drag the peaks workspace over the top. For ConvertToDiffractionMDWorkspace, Janik could probably provide you with the best parameters.

Changed 9 years ago by Owen Arnold

comment:25 Changed 9 years ago by Owen Arnold

Tester:

See attached python script. From that point, you can re-run FindSXPeaks using different background thresholds and tolerance values. I know that for this sample Pascal tends to limit the x range to give better results with this algorithm, but he's not available for me to ask him about this. Although, Pascal and several users have been using this algorithm to date.

comment:26 Changed 9 years ago by Michael Reuter

  • Status changed from verifying to closed

OK, that's better. This looks like it works fine.

comment:27 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 5069

Note: See TracTickets for help on using tickets.