Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Instrument View may not show data after ConjoinWorkspaces #7557

Closed
mantid-builder opened this issue Mar 15, 2013 · 3 comments
Closed

Instrument View may not show data after ConjoinWorkspaces #7557

mantid-builder opened this issue Mar 15, 2013 · 3 comments
Labels
Framework Issues and pull requests related to components in the Framework Stale This label is automatically applied to issues that are automatically closed by the stale bot

Comments

@mantid-builder
Copy link
Collaborator

This issue was originally TRAC 6711

Original Reporter: Gesner Passos

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))
@mantid-builder
Copy link
Collaborator Author

@NickDraper (2013-04-29T09:49:58):
Moved to r2.6 at the end of r2.5


@NickDraper (2013-07-26T13:55:00):
Moved to backlog at the code freeze for R2.6


@NickDraper (2014-02-14T11:04:59):
Bulk move to assigned at the introduction of the triage step

@mantid-builder mantid-builder added the Framework Issues and pull requests related to components in the Framework label Jun 3, 2015
@stale
Copy link

stale bot commented Feb 23, 2021

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.

@stale stale bot added the Stale This label is automatically applied to issues that are automatically closed by the stale bot label Feb 23, 2021
@stale
Copy link

stale bot commented Mar 2, 2021

This issue has been closed automatically. If this still affects you please re-open this issue with a comment so we can look into resolving it.

@stale stale bot closed this as completed Mar 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Framework Issues and pull requests related to components in the Framework Stale This label is automatically applied to issues that are automatically closed by the stale bot
Projects
None yet
Development

No branches or pull requests

2 participants