Ticket #5667 (assigned)

Opened 8 years ago

Last modified 5 years ago

Bug with negative xstep in IDF

Reported by: Owen Arnold Owned by: Karl Palmen
Priority: major Milestone: Backlog
Component: Framework Keywords:
Cc: MikkelsonD@…, anders.markvardsen@… Blocked By:
Blocking: Tester: Dennis Mikkelson

Description (last modified by Karl Palmen) (diff)

Message from Dennis below:

"NEW BUG: There was a side-effect to the new SXD definition file. If a new calibration file is not loaded, when an SXD peaks workspace is written to an ISAW peaks file, any detector where xstep is negative in the definition file gets written with a NEGATIVE WIDTH. Similarly, if ystep is negative in the definition file, the detector gets a NEGATIVE HEIGHT. We could fix this symptom by making SaveIsawPeaks() just write the absolute value of the width and height to the file, but fixing the symptom may hide worse problems that will be hard to find later. That is, however the instrument definition information gets placed in the rectangular detector information, it is now getting set with a negative width and/or height for some of the SXD detectors. Perhaps someone who is more familiar with the system than I could check this out and fix it in a way that should not break other things. The negative width and height "broke" the detector calibration in Mantid, so I just used an editor to make them positive and used that fixed peaks file to do the calibration in ISAW."

The offending IDF is attached.

Attachments

SXD_Definition4.xml (7.0 KB) - added by Owen Arnold 8 years ago.

Change History

comment:1 Changed 8 years ago by Owen Arnold

  • Status changed from new to accepted

Changed 8 years ago by Owen Arnold

comment:2 Changed 8 years ago by Owen Arnold

  • Description modified (diff)

comment:3 Changed 8 years ago by Owen Arnold

refs #5667. Add two failing test cases

Changeset: 419fc2f041434ca51bc2b709623c3d75a7f93101

comment:4 Changed 8 years ago by Owen Arnold

refs #5667. Fix failing test by fixing code

Changeset: eb72adae009e466193761d4de093fda913712449

comment:5 Changed 8 years ago by Owen Arnold

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

Tester:

Run the following and notice that the Height and Width entries in the output *.peaks file are not negative for all 11 Banks.

LoadRaw(Filename=r'SXD23767.raw',OutputWorkspace='SXD23767',LoadLogFiles='0',LoadMonitors='Exclude')

LoadInstrument(Workspace='SXD23767',Filename=r'SXD_Definition4.xml')

ConvertToDiffractionMDWorkspace(InputWorkspace='SXD23767',
                                OneEventPerBin='1',LorentzCorrection='1',
                                SplitInto='2,2,2',SplitThreshold='25',MaxRecursionDepth='12',Extents='-12,12,-12,12,-12,12',
                                OutputWorkspace='SXD23767_MD')

FindPeaksMD(InputWorkspace='SXD23767_MD',
            PeakDistanceThreshold='0.5',MaxPeaks='325',DensityThresholdFactor='50',
            OutputWorkspace='SXD_peaks_0pt3_300_100')
            
SaveIsawPeaks(InputWorkspace='SXD_peaks_0pt3_300_100', Filename="demo.peaks")

comment:6 Changed 8 years ago by Dennis Mikkelson

  • Status changed from verify to verifying
  • Tester set to Dennis Mikkelson

comment:7 Changed 8 years ago by Owen Arnold

  • Status changed from verifying to reopened
  • Resolution fixed deleted

comment:8 Changed 8 years ago by Owen Arnold

I'm going to undo these changes and move the ticket to the next release because the issue is more complicated that we thought at first.

comment:9 Changed 8 years ago by Owen Arnold

refs #5667. Revert changes.

Changeset: 2397d0d869b65b7bf2092c5811c7d6e2f56510d6

comment:10 Changed 8 years ago by Owen Arnold

  • Priority changed from critical to major
  • Status changed from reopened to assigned
  • Owner changed from Owen Arnold to Dennis Mikkelson
  • Milestone changed from Release 2.2 to Release 2.3

comment:11 Changed 8 years ago by Owen Arnold

refs #5667. Revert changes.

Changeset: 2397d0d869b65b7bf2092c5811c7d6e2f56510d6

comment:12 Changed 8 years ago by Owen Arnold

refs #5667. Add two failing test cases

Changeset: 419fc2f041434ca51bc2b709623c3d75a7f93101

comment:13 Changed 8 years ago by Owen Arnold

refs #5667. Fix failing test by fixing code

Changeset: eb72adae009e466193761d4de093fda913712449

comment:14 Changed 8 years ago by Owen Arnold

refs #5667. Revert changes.

Changeset: 2397d0d869b65b7bf2092c5811c7d6e2f56510d6

comment:15 Changed 8 years ago by Nick Draper

  • Milestone changed from Release 2.3 to Release 2.4

Moved to milestone 2.4

comment:16 Changed 8 years ago by Dennis Mikkelson

  • Owner changed from Dennis Mikkelson to Anyone

Work on this ticket could possibly break lots of things for lots of instruments. It should be addressed by someone with a thorough understanding of how detector geometry is treated in Mantid.

comment:17 Changed 8 years ago by Nick Draper

  • Milestone changed from Release 2.4 to Release 2.5

Moved at the code freeze for release 2.4

comment:18 Changed 7 years ago by Nick Draper

  • Milestone changed from Release 2.5 to Release 2.6

Moved to r2.6 at the end of r2.5

comment:19 Changed 7 years ago by Karl Palmen

I had a similar problem when running my tube calibration scripts on MAPS for tubes that had a 'step' of -1 and subsequently fixed it.

comment:20 Changed 7 years ago by Nick Draper

  • Status changed from assigned to new

comment:21 Changed 7 years ago by Nick Draper

  • Component changed from Mantid to Framework

comment:22 Changed 7 years ago by Nick Draper

  • Milestone changed from Release 2.6 to Backlog

Moved to backlog at the code freeze for R2.6

comment:23 Changed 7 years ago by Karl Palmen

  • Owner changed from Anyone to Karl Palmen
  • Description modified (diff)

comment:24 Changed 7 years ago by Karl Palmen

  • Keywords Poker added

comment:25 Changed 7 years ago by Nick Draper

  • Keywords Poker removed

Poker Estimate: 6.5d

comment:26 Changed 7 years ago by Nick Draper

  • Status changed from new to assigned

Bulk move to assigned at the introduction of the triage step

comment:27 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 6513

Note: See TracTickets for help on using tickets.