You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mantid-builder opened this issue
Mar 15, 2013
· 3 comments
Labels
FrameworkIssues and pull requests related to components in the FrameworkStaleThis label is automatically applied to issues that are automatically closed by the stale bot
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))
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. If you feel this is incorrect please comment to keep it alive, with a reason why.
To prevent closure, e.g. for long-term planning issues, add the "Never Stale" label.
stalebot
added
the
Stale
This label is automatically applied to issues that are automatically closed by the stale bot
label
Feb 23, 2021
FrameworkIssues and pull requests related to components in the FrameworkStaleThis label is automatically applied to issues that are automatically closed by the stale bot
This issue was originally TRAC 6711
Original Reporter: Gesner Passos
Instrument view showing data as monitor workspace.
The text was updated successfully, but these errors were encountered: