Ticket #11390 (closed: fixed)

Opened 6 years ago

Last modified 5 years ago

Stitch1DMany crash report

Reported by: Owen Arnold Owned by: Harry Jeffery
Priority: blocker Milestone: Release 3.4
Component: Reflectometry Keywords:
Cc: Blocked By:
Blocking: Tester: Owen Arnold

Description

According to Tim, running this twice causes Mantid to hang. Could you please try to trackdown the origin of the problem and either fix it or pass the ticket back to Owen.

This affects the 3.3 release and the nightly builds according to TIm, so we should fix it ASAP.

import os, sys
sys.path.append(r'C:\MantidInstall')
sys.path.append(r'C:\MantidInstall\bin')
sys.path.append(r'u:\user\mantid\TestingPointDetectorReduction')
from mantid.simpleapi import *
from WrappedReduction import *
r=Runs()

## Build a transmission
trans = transmission('11711+11712+11713+11683+11633+11634+11635')
## Get the data
r1q = refq('11716+11723', theta=0.50, Transmission = trans)
r2q = refq('11718+11717+11724', theta=1.0, Transmission = trans)
r3q = refq(r[11719:11722,11725:11727], theta=2.0, Transmission = trans)

##  Rebin
rr1q = Rebin(r1q,'0.010,-0.01,0.05')
rr2q = Rebin(r2q,'0.018,-0.01,0.1')
rr3q = Rebin(r3q,'0.03,-0.01,0.25')

##  Stitch
rr,scale = Stitch1DMany('rr1q,rr2q,rr3q', Params='-0.015’)
print "Happy”
rr_2,scale_2 = Stitch1DMany('rr1q,rr2q,rr3q', Params='-0.015')
print "Happy”
rr,scale = Stitch1DMany('rr1q,rr2q,rr3q', Params='-0.015')
print UnHappy. Execution gets stuck on the line above.

Change History

comment:1 Changed 6 years ago by Harry Jeffery

  • Status changed from new to inprogress

comment:2 Changed 6 years ago by Harry Jeffery

This script also reproduces the issue. Currently investigating.

CreateSampleWorkspace(OutputWorkspace='r1a', Function='Flat background', NumBanks=5, BankPixelWidth=1, NumEvents=0, XUnit='Time', BinWidth=100)
CreateSampleWorkspace(OutputWorkspace='r2a', Function='Flat background', NumBanks=5, BankPixelWidth=1, NumEvents=0, XUnit='Time', BinWidth=100)
CreateSampleWorkspace(OutputWorkspace='r3a', Function='Flat background', NumBanks=5, BankPixelWidth=1, NumEvents=0, XUnit='Time', BinWidth=100)

CreateSampleWorkspace(OutputWorkspace='r1b', Function='Flat background', NumBanks=5, BankPixelWidth=1, NumEvents=0, XUnit='Time', BinWidth=100)
CreateSampleWorkspace(OutputWorkspace='r2b', Function='Flat background', NumBanks=5, BankPixelWidth=1, NumEvents=0, XUnit='Time', BinWidth=100)
CreateSampleWorkspace(OutputWorkspace='r3b', Function='Flat background', NumBanks=5, BankPixelWidth=1, NumEvents=0, XUnit='Time', BinWidth=100)

GroupWorkspaces(InputWorkspaces='r1a,r1b', OutputWorkspace='r1g')
GroupWorkspaces(InputWorkspaces='r2a,r2b', OutputWorkspace='r2g')
GroupWorkspaces(InputWorkspaces='r3a,r3b', OutputWorkspace='r3g')

rr,scale = Stitch1DMany('r1g,r2g,r3g', Params='0.1')
rr_2,scale_2 = Stitch1DMany('r1g,r2g,r3g', Params='0.1')
rr,scale = Stitch1DMany('r1g,r2g,r3g', Params='0.1')

comment:3 Changed 6 years ago by Harry Jeffery

Refs #11390 Fix hang in Stitch1DMany

Changeset: 247e78db3a64fad1fd729358ff6a3a2d8d62aefc

comment:4 Changed 6 years ago by Harry Jeffery

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

This is being verified as pull request #430.

comment:5 Changed 6 years ago by Owen Arnold

  • Status changed from verify to verifying
  • Tester set to Owen Arnold

comment:6 Changed 6 years ago by Owen Arnold

  • Status changed from verifying to closed

Merge pull request #430 from mantidproject/11390_fix_hang_in_stitch1dmany

Fix hang in Stitch1DMany

Full changeset: 684c5644aebf062bf126d7309bc9a198eb138341

comment:7 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 12229

Note: See TracTickets for help on using tickets.