This is a Python binding to the C++ class Mantid::API::IPeaksWorkspace.
bases: mantid.api.ITableWorkspace, mantid.api.ExperimentInfo
Raises an exception This class cannot be instantiated from Python
Add a named column with the given type. Recognized types are: int,float,double,bool,str,V3D,long64
Add a peak to the workspace
Appends a row with the values from the given sequence. It it assumed that the items are in the correct order for the defined columns.
Return the value in the given cell. If the value argument is a number then it is interpreted as a row otherwise it is interpreted as a column name.
Copies an existing workspace into a new one.
Property descriptions:
InputWorkspace(Input:req) Workspace Name of the input workspace. Must be a MatrixWorkspace (2D or EventWorkspace), a PeaksWorkspace or a MDEventWorkspace.
OutputWorkspace(Output:req) Workspace Name of the newly created cloned workspace.
Return all values of a specific column as a list.
Returns the number of columns in the workspace.
Return the types of the columns as a list
Return a const reference to the ComponentInfo object.
Performs a unit change on the X values of a workspace
Property descriptions:
InputWorkspace(Input:req) MatrixWorkspace Name of the input workspace
OutputWorkspace(Output:req) MatrixWorkspace Name of the output workspace, can be the same as the input
Target(Input:req) string The name of the units to convert to (must be one of those registered in the Unit Factory)[Degrees, DeltaE, DeltaE_inFrequency, DeltaE_inWavenumber, dSpacing, dSpacingPerpendicular, Empty, Energy, Energy_inWavenumber, Label, Momentum, MomentumTransfer, QSquared, SpinEchoLength, SpinEchoTime, Temperature, Time, TOF, Wavelength]
EMode(Input) string The energy mode (default: elastic)[Elastic, Direct, Indirect]
EFixed(Input) number Value of fixed energy in meV : EI (EMode=Direct) or EF (EMode=Indirect) . Must be set if the target unit requires it (e.g. DeltaE)
AlignBins(Input) boolean If true (default is false), rebins after conversion to ensure that all spectra in the output workspace have identical bin boundaries. This option is not recommended (see http://www.mantidproject.org/ConvertUnits).
ConvertFromPointData(Input) boolean When checked, if the Input Workspace contains Points the algorithm ConvertToHistogram will be run to convert the Points to Bins. The Output Workspace will contains Bins.
Create a Peak and return it from its coordinates in the QLab frame
Create a Peak and return it from its coordinates in the HKL frame
Removes a workspace from memory.
Property descriptions:
Workspace(Input:req) Workspace Name of the workspace to delete.
Return a const reference to the DetectorInfo object.
Return a list of the column names.
Returns the comment field on the workspace
Returns the energy mode.
Return read-only access to the WorkspaceHistory
Returns the Instrument for this run.
Returns IDF filename
Returns the memory footprint of the workspace in KB
Returns the name of the workspace. This could be an empty string
Returns the number of peaks within the workspace
Returns a peak at the given index
Get the plot type of given column as an integer. Accepts column name or index. Possible return values: (0 = None, 1 = X, 2 = Y, 3 = Z, 4 = xErr, 5 = yErr, 6 = Label).
Compile a list of files in compliance with name pattern-matching, file format, and date-stamp constraints
Ideally, the valid-from and valid-to of any valid file should encapsulate the argument date. If this is not possible, then the file with the most recent valid-from stamp is selected
prefix: the name of a valid file must begin with this pattern fileFormats: list of valid file extensions directoryNames: list of directories to be searched date : the ‘valid-from’ and ‘valid-to ‘dates of a valid file will encapsulate this date (e.g ‘1900-01-31 23:59:00’)
returns : list of absolute paths for each valid file
Return the Run object for this workspace
Returns the run identifier for this run.
Returns the title of the workspace
Determine if the peaks have been integrated
The string ID of the class
True if the workspace has run more than n algorithms (Default=1)
Return a list of the column names.
An algorithm to mask a detector, or set of detectors, as not to be used. The workspace spectra associated with those detectors are zeroed.
Property descriptions:
Workspace(InOut:req) Workspace The name of the input and output workspace on which to perform the algorithm.
SpectraList(Input) int list A list of spectra to mask
DetectorList(Input) int list A list of detector ID’s to mask
WorkspaceIndexList(Input) unsigned int list A list of the workspace indices to mask
MaskedWorkspace(Input) MatrixWorkspace If given but not as a SpecialWorkspace2D, the masking from this workspace will be copied. If given as a SpecialWorkspace2D, the masking is read from its Y values.[]
ForceInstrumentMasking(Input) boolean Works when ‘MaskedWorkspace’ is provided and forces to use spectra-detector mapping even in case when number of spectra in ‘Workspace’ and ‘MaskedWorkspace’ are equal
StartWorkspaceIndex(Input) number If other masks fields are provided, it’s the first index of the target workspace to be allowed to be masked from by these masks, if not, its the first index of the target workspace to mask. Default value is 0 if other masking is present or ignored if not.
EndWorkspaceIndex(Input) number If other masks are provided, it’s the last index of the target workspace allowed to be masked to by these masks, if not, its the last index of the target workspace to mask. Default is number of histograms in target workspace if other masks are present or ignored if not.
ComponentList(Input) str list A list names of components to mask
The name of the object
Peak info number at Q vector for this workspace
Remove the named column.
Remove a peak from the workspace
Return all values of a specific row as a dict.
Returns the number of rows within the workspace.
Return the Run object. This cannot be modified, use mutableRun to modify.
Return the Sample object. This cannot be modified, use mutableSample to modify.
Sets the value of a given cell. If the row_or_column argument is a number then it is interpreted as a row otherwise it is interpreted as a column name.
Set the comment field of the workspace
Set the plot type of given column. Accepts column name or index. Possible type values: (0 = None, 1 = X, 2 = Y, 3 = Z, 4 = xErr, 5 = yErr, 6 = Label).
Resize the table to contain count rows.
Set the title of the workspace
Return a const reference to the SpectrumInfo object.
Returns true if the object can be accessed safely from multiple threads
Gets the values of this workspace as a dictionary. The keys of the dictionary will be the names of the columns of the table. The values of the entries will be lists of values for each column.