Module that contains classes to hold information read from reduced data files.
A good description of the data members can be found in the CanSAS 1D XML data format:
http://www.smallangles.net/wgwiki/index.php/cansas1d_documentation
Class to hold collimation information
Bases: sans.dataloader.data_info.plottable_1D, sans.dataloader.data_info.DataInfo
1D data class
Add two data sets
Parameters: | other – data set to add to the current one |
---|---|
Returns: | new data set |
Raises ValueError: | |
raised when two data sets are incompatible |
Divided a data set by another
Parameters: | other – data set that the current one is divided by |
---|---|
Returns: | new data set |
Raises ValueError: | |
raised when two data sets are incompatible |
Multiply two data sets
Parameters: | other – data set to subtract from the current one |
---|---|
Returns: | new data set |
Raises ValueError: | |
raised when two data sets are incompatible |
Add two data sets
Parameters: | other – data set to add to the current one |
---|---|
Returns: | new data set |
Raises ValueError: | |
raised when two data sets are incompatible |
Divided a data set by another
Parameters: | other – data set that the current one is divided by |
---|---|
Returns: | new data set |
Raises ValueError: | |
raised when two data sets are incompatible |
Multiply two data sets
Parameters: | other – data set to subtract from the current one |
---|---|
Returns: | new data set |
Raises ValueError: | |
raised when two data sets are incompatible |
Subtract two data sets
Parameters: | other – data set to subtract from the current one |
---|---|
Returns: | new data set |
Raises ValueError: | |
raised when two data sets are incompatible |
Nice printout
Subtract two data sets
Parameters: | other – data set to subtract from the current one |
---|---|
Returns: | new data set |
Raises ValueError: | |
raised when two data sets are incompatible |
Checks that the data lengths are compatible. Checks that the x vectors are compatible. Returns errors vectors equal to original errors vectors if they were present or vectors of zeros when none was found.
Parameters: | other – other data set for operation |
---|---|
Returns: | dy for self, dy for other [numpy arrays] |
Raises ValueError: | |
when lengths are not compatible |
Add notes to datainfo
Clone the current object, without copying the data (which will be filled out by a subsequent operation). The data arrays will be initialized to zero.
Parameters: |
|
---|
Check whether the data has slit smearing information
Returns: | True is slit smearing info is present, False otherwise |
---|
set the x axis label and unit
set the y axis label and unit
Bases: sans.dataloader.data_info.plottable_2D, sans.dataloader.data_info.DataInfo
2D data class
Add two data sets
Parameters: | other – data set to add to the current one |
---|---|
Returns: | new data set |
Raises ValueError: | |
raised when two data sets are incompatible |
Divided a data set by another
Parameters: | other – data set that the current one is divided by |
---|---|
Returns: | new data set |
Raises ValueError: | |
raised when two data sets are incompatible |
Multiply two data sets
Parameters: | other – data set to subtract from the current one |
---|---|
Returns: | new data set |
Raises ValueError: | |
raised when two data sets are incompatible |
Add two data sets
Parameters: | other – data set to add to the current one |
---|---|
Returns: | new data set |
Raises ValueError: | |
raised when two data sets are incompatible |
Divided a data set by another
Parameters: | other – data set that the current one is divided by |
---|---|
Returns: | new data set |
Raises ValueError: | |
raised when two data sets are incompatible |
Multiply two data sets
Parameters: | other – data set to subtract from the current one |
---|---|
Returns: | new data set |
Raises ValueError: | |
raised when two data sets are incompatible |
Subtract two data sets
Parameters: | other – data set to subtract from the current one |
---|---|
Returns: | new data set |
Raises ValueError: | |
raised when two data sets are incompatible |
Subtract two data sets
Parameters: | other – data set to subtract from the current one |
---|---|
Returns: | new data set |
Raises ValueError: | |
raised when two data sets are incompatible |
Perform 2D operations between data sets
Parameters: |
|
---|
Checks that the data lengths are compatible. Checks that the x vectors are compatible. Returns errors vectors equal to original errors vectors if they were present or vectors of zeros when none was found.
Parameters: | other – other data set for operation |
---|---|
Returns: | dy for self, dy for other [numpy arrays] |
Raises ValueError: | |
when lengths are not compatible |
Add notes to datainfo
Clone the current object, without copying the data (which will be filled out by a subsequent operation). The data arrays will be initialized to zero.
Parameters: |
|
---|
set the x axis label and unit
set the y axis label and unit
set the z axis label and unit
Class to hold the data read from a file. It includes four blocks of data for the instrument description, the sample description, the data itself and any other meta data.
Add two data sets
Parameters: | other – data set to add to the current one |
---|---|
Returns: | new data set |
Raises ValueError: | |
raised when two data sets are incompatible |
Divided a data set by another
Parameters: | other – data set that the current one is divided by |
---|---|
Returns: | new data set |
Raises ValueError: | |
raised when two data sets are incompatible |
Initialization
Multiply two data sets
Parameters: | other – data set to subtract from the current one |
---|---|
Returns: | new data set |
Raises ValueError: | |
raised when two data sets are incompatible |
Add two data sets
Parameters: | other – data set to add to the current one |
---|---|
Returns: | new data set |
Raises ValueError: | |
raised when two data sets are incompatible |
Divided a data set by another
Parameters: | other – data set that the current one is divided by |
---|---|
Returns: | new data set |
Raises ValueError: | |
raised when two data sets are incompatible |
Multiply two data sets
Parameters: | other – data set to subtract from the current one |
---|---|
Returns: | new data set |
Raises ValueError: | |
raised when two data sets are incompatible |
Subtract two data sets
Parameters: | other – data set to subtract from the current one |
---|---|
Returns: | new data set |
Raises ValueError: | |
raised when two data sets are incompatible |
Nice printout
Subtract two data sets
Parameters: | other – data set to subtract from the current one |
---|---|
Returns: | new data set |
Raises ValueError: | |
raised when two data sets are incompatible |
Private method to perform operation. Not implemented for DataInfo, but should be implemented for each data class inherited from DataInfo that holds actual data (ex.: Data1D)
Add notes to datainfo
Class to hold detector information
Initialize class attribute that are objects...
Class that holds information about the processes performed on the data.
Class to hold the sample description
Class to hold source information
Vector class to hold multi-dimensional objects
Initialization. Components that are not set a set to None by default.
Parameters: |
|
---|
Data1D is a place holder for 1D plottables.
set the x axis label and unit
set the y axis label and unit
Data2D is a place holder for 2D plottables.
set the x axis label and unit
set the y axis label and unit
set the z axis label and unit