mcsas.dataobj.sasdata module¶
Represents data associated with a measurement by small angle scattering (SAS). Some examples and tests.
>>> import numpy
>>> testdata = numpy.random.rand(4,4)
>>> testtitle = "some title"
>>> from sasdata import SASData
Testing >>> first = SASData(testtitle, testdata) >>> first.title == testtitle True >>> numpy.all(first.rawArray == testdata) True
-
class
SASData(**kwargs)[source]¶ Bases:
dataobj.dataobj.DataObjRepresents one set of data from a unique source (a file, for example).
-
configType¶ Returns a compatible DataConfig type.
-
count¶
-
dataContent¶ shows the content of the loaded data: Q, I, IErr, etc
-
classmethod
displayData()[source]¶ classmethod(function) -> method
Convert a function to be a class method.
A class method receives the class as implicit first argument, just like an instance method receives the instance. To declare a class method, use this idiom:
- class C:
- def f(cls, arg1, arg2, …): … f = classmethod(f)
It can be called either on the class (e.g. C.f()) or on an instance (e.g. C().f()). The instance is ignored except for its class. If a class method is called for a derived class, the derived class object is passed as the implied first argument.
Class methods are different than C++ or Java static methods. If you want those, see the staticmethod builtin.
-
classmethod
displayDataDescr()[source]¶ classmethod(function) -> method
Convert a function to be a class method.
A class method receives the class as implicit first argument, just like an instance method receives the instance. To declare a class method, use this idiom:
- class C:
- def f(cls, arg1, arg2, …): … f = classmethod(f)
It can be called either on the class (e.g. C.f()) or on an instance (e.g. C().f()). The instance is ignored except for its class. If a class method is called for a derived class, the derived class object is passed as the implied first argument.
Class methods are different than C++ or Java static methods. If you want those, see the staticmethod builtin.
-
modelType¶ Returns a compatible ScatteringModel type.
-
p¶ Q-Vector at which the intensities are measured. Provided for convenience use within models.
-
pLimsString¶ Properly formatted q-limits for UI label text.
-
q¶ Q-Vector at which the intensities are measured. Provided for convenience use within models.
-
qLimsString¶ Properly formatted q-limits for UI label text.
-
rUnit¶
-
shannonChannelEst()[source]¶ Warning
method ‘dataobj.sasdata.SASData.shannonChannelEst’ undocumented
-
shannonChannelEstText¶
-
sphericalSizeEstText¶
-
-
classproperty(func)¶ Warning
function ‘dataobj.sasdata.classproperty’ undocumented