mcsas.datafile.nxcansasfile module

class NXSHeader(dataCount, description=None)[source]

Bases: object

line(index)[source]

Returns the specified line of the header as string.

classmethod maxLines()[source]

Warning

method ‘datafile.nxcansasfile.NXSHeader.maxLines’ undocumented

class NXcanSASFile(filename, **kwargs)[source]

Bases: datafile.datafile.DataFile

A NXcanSAS file, which is a NeXus-conform HDF5 file for storing corrected SAS data.

dataRoot
classmethod fileFilter()[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 getDataObj()[source]

Creates and returns the appropriate DataObj instance for this file type.

rawArray
readFile(**kwargs)[source]

Gets a proper file name and returns file data. May modify the instance. To be reimplemented.

readItem(element)[source]

Warning

method ‘datafile.nxcansasfile.NXcanSASFile.readItem’ undocumented

classproperty(func)

Warning

function ‘datafile.nxcansasfile.classproperty’ undocumented