Ticket #6711 (assigned)

Opened 8 years ago

Last modified 5 years ago

Instrument View may not show data after ConjoinWorkspaces

Reported by: Gesner Passos Owned by: Roman Tolchenov
Priority: major Milestone: Backlog
Component: Framework Keywords:
Cc: anders.markvardsen@… Blocked By:
Blocking: Tester:

Description

Instrument view showing data as monitor workspace.

# set MANTID to SANS2D instrument, and add cycle_12_3 to the path to search

#Load the event data
run_num = 16187
ws_e, mon = Load(str(run_num),LoadMonitors=True)
ws_e = CropWorkspace(ws_e,StartWorkspaceIndex=0,EndWorkspaceIndex=ws_e.getNumberHistograms()/2-1)

# get the binning from the monitor
monitors = mon.readX(0)
step = 0
values = []
for i in range(len(monitors)-1):
	if monitors[i+1] - monitors[i] == step: continue
        values.append(monitors[i])
        step = monitors[i+1] - monitors[i]
        values.append(step)

values.append(monitors[-1])

# rebin the event data to produce histograms
hist = Rebin(ws_e, Params=values, PreserveEvents=False)

# concatenate the monitor and the histogram. You will end up with
# the workspace: ws_e_monitors. 
# ShowInstrument in this workspace and you will see only a blank detectors
ConjoinWorkspaces(mon, hist)


# I was expecting something like this one.
hist_ws = LoadNexus(str(run_num))

Change History

comment:1 Changed 8 years ago by Gesner Passos

  • Blocking 6530 added

comment:2 Changed 7 years ago by Gesner Passos

  • Blocking 6530 removed

comment:3 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:4 Changed 7 years ago by Nick Draper

  • Component changed from Mantid to Framework

comment:5 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:6 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:7 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 7557

Note: See TracTickets for help on using tickets.