Adapters for fitting module
Bases: danse.common.plottools.plottables.Data1D, sans.dataloader.data_info.Data1D
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 |
alias of type
x.__delattr__(‘name’) <==> del x.name
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 |
x.__getattribute__(‘name’) <==> x.name
x.__hash__() <==> hash(x)
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 |
helper for pickle
helper for pickle
x.__repr__() <==> repr(x)
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 |
Take care of changes in View when data is changed. This method is provided for backward compatibility.
print data
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 |
list of weak references to the object (if defined)
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
Since no transformation is made for log10(x), check that no negative values is plot in log scale
Since no transformation is made for log10(y), check that no negative values is plot in log scale
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: |
|
---|
Return the number of colors need to render the object
copy values of Data1D of type DataLaoder.Data_info
Return the units and name of x-axis
Return the units and name of y- axis
Returns True if there is no data stored in the plottable
Check whether the data has slit smearing information
Returns: | True is slit smearing info is present, False otherwise |
---|
Build a label mostly unique within a collection
It limits View data range to plot from min to max
Parameters: |
|
---|
Reset x, y, dx, dy view with its parameters
Renders the plottable on the graph
Reload view with new value to plot
Return View parameters and it is used by Fit Dialog
It takes a label of the x and y transformation and set View parameters
Parameters: |
|
---|
Load View
It transforms x, y before displaying
Receive pointers to function that transform x and dx and set corresponding View pointers
Parameters: |
|
---|
Receive pointers to function that transform y and dy and set corresponding View pointers
Parameters: |
|
---|
Set the name and unit of x_axis
Parameters: |
|
---|
Set the name and unit of y_axis
Parameters: |
|
---|
Bases: danse.common.plottools.plottables.Data2D, sans.dataloader.data_info.Data2D
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 |
alias of type
x.__delattr__(‘name’) <==> del x.name
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 |
x.__getattribute__(‘name’) <==> x.name
x.__hash__() <==> hash(x)
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 |
helper for pickle
helper for pickle
x.__repr__() <==> repr(x)
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 |
Take care of changes in View when data is changed. This method is provided for backward compatibility.
print data
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 |
list of weak references to the object (if defined)
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
Since no transformation is made for log10(x), check that no negative values is plot in log scale
Since no transformation is made for log10(y), check that no negative values is plot in log scale
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: |
|
---|
Return the number of colors need to render the object
copy value of Data2D of type DataLoader.data_info
Return the units and name of x-axis
Return the units and name of y- axis
Returns True if there is no data stored in the plottable
Build a label mostly unique within a collection
It limits View data range to plot from min to max
Parameters: |
|
---|
Reset x, y, dx, dy view with its parameters
Renders the plottable on the graph
Reload view with new value to plot
Return View parameters and it is used by Fit Dialog
It takes a label of the x and y transformation and set View parameters
Parameters: |
|
---|
Use datainfo object to initialize data2D
Parameters: | datainfo – object |
---|
Load View
It transforms x, y before displaying
Receive pointers to function that transform x and dx and set corresponding View pointers
Parameters: |
|
---|
Receive pointers to function that transform y and dy and set corresponding View pointers
Parameters: |
|
---|
set x-axis
Parameters: |
|
---|
set y-axis
Parameters: |
|
---|
set z-axis
Parameters: |
|
---|
Bases: danse.common.plottools.plottables.Theory1D, sans.dataloader.data_info.Data1D
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 |
alias of type
x.__delattr__(‘name’) <==> del x.name
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 |
x.__getattribute__(‘name’) <==> x.name
x.__hash__() <==> hash(x)
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 |
helper for pickle
helper for pickle
x.__repr__() <==> repr(x)
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 |
Take care of changes in View when data is changed. This method is provided for backward compatibility.
print data
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 |
list of weak references to the object (if defined)
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
Since no transformation is made for log10(x), check that no negative values is plot in log scale
Since no transformation is made for log10(y), check that no negative values is plot in log scale
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: |
|
---|
Return the number of colors need to render the object
copy values of Data1D of type DataLaoder.Data_info
Return the units and name of x-axis
Return the units and name of y- axis
Returns True if there is no data stored in the plottable
Check whether the data has slit smearing information
Returns: | True is slit smearing info is present, False otherwise |
---|
Build a label mostly unique within a collection
It limits View data range to plot from min to max
Parameters: |
|
---|
Reset x, y, dx, dy view with its parameters
Reload view with new value to plot
Return View parameters and it is used by Fit Dialog
It takes a label of the x and y transformation and set View parameters
Parameters: |
|
---|
Load View
It transforms x, y before displaying
Receive pointers to function that transform x and dx and set corresponding View pointers
Parameters: |
|
---|
Receive pointers to function that transform y and dy and set corresponding View pointers
Parameters: |
|
---|
Set the name and unit of x_axis
Parameters: |
|
---|
Set the name and unit of y_axis
Parameters: |
|
---|
Return True is data is valid enough to compute chisqr, else False