Table of Contents
Name | Direction | Type | Default | Description |
---|---|---|---|---|
Filename | Input | string | Mandatory | Allowed values: [‘*.nxs.h5’] |
Banks | Input | string | all | |
OutputWorkspace | Output | Workspace | Mandatory |
This is a helper algorithm to load data from the inelastic banks for the VISION instrument at the SNS.
Load all of the inelastic data:
w1 = LoadVisionInelastic("VIS_19351.nxs.h5")
print "Number of spectra:", w1.getNumberHistograms()
Number of spectra: 14336
Load just the forward inelastic banks:
w1 = LoadVisionInelastic("VIS_19351.nxs.h5",Banks="forward")
print "Number of spectra:", w1.getNumberHistograms()
Number of spectra: 7168
Load the backward facing inelastic banks and the forward inelastic bank3:
w1 = LoadVisionInelastic("VIS_19351.nxs.h5",Banks="backward,bank3")
print "Number of spectra:", w1.getNumberHistograms()
Number of spectra: 8192
Categories: Algorithms | DataHandling | PythonAlgorithms
Python: LoadVisionInelastic.py