Ticket #3650 (closed: fixed)

Opened 9 years ago

Last modified 5 years ago

HFIR SANS: fix bug with beam center within a loop

Reported by: Mathieu Doucet Owned by: Mathieu Doucet
Priority: major Milestone: Iteration 30
Component: Mantid Keywords:
Cc: Blocked By:
Blocking: Tester: Martyn Gigg

Description

The following script gives a different beam center every second iteration. To test, run it and see that the same coordinates are printed for each iteration.

# HFIR reduction script
# Script automatically generated on Wed Aug 31 15:13:38 2011

from MantidFramework import *
mtd.initialise(False)
from reduction.instruments.sans.hfir_command_interface import *

BIOSANS()
DataPath("somewhere_with_data")
NoSensitivityCorrection()
SetWavelength(12,.1)
SetSampleDetectorOffset(837.9)
NoSolidAngle()
NoNormalization()
AzimuthalAverage(n_bins=100, n_subpix=1, log_binning=False)
DirectBeamCenter("some_biosans_data_file.xml")

for i in range(4):
	ReductionSingleton()._data_files = {}
	AppendDataFile(["some_biosans_data_file.xml"])
	SaveIqAscii()
	Reduce1D()
	print ReductionSingleton().get_beam_center()

Change History

comment:1 Changed 9 years ago by Mathieu Doucet

  • Owner set to Mathieu Doucet
  • Status changed from new to accepted

comment:2 Changed 9 years ago by Mathieu Doucet

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

In [14351]:

Fixes #3650

comment:3 Changed 9 years ago by Robert Whitley

  • Status changed from verify to verifying
  • Tester set to Robert Whitley

comment:4 Changed 9 years ago by Robert Whitley

  • Status changed from verifying to verify
  • Tester Robert Whitley deleted

comment:5 Changed 9 years ago by Martyn Gigg

  • Status changed from verify to verifying
  • Tester set to Martyn Gigg

comment:6 Changed 9 years ago by Martyn Gigg

  • Status changed from verifying to closed

Numbers all look good with the system test data.

comment:7 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 4497

Note: See TracTickets for help on using tickets.