Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __init__(self, data=None, header=None):
FabioImage.__init__(self, data, header)
self.__bpp_file = None
self.__headerstring__ = ""
def __init__(self, data=None, header=None, fname=None):
"""
Constructor of the class CIF Binary File reader.
:param str fname: the name of the file to open
"""
FabioImage.__init__(self, data, header)
self.cif = CIF()
self.cbs = None
self.start_binary = None
if fname is not None: # load the file)
self.read(fname)
def __init__(self, *arg, **kwargs):
"""
Generic constructor
"""
FabioImage.__init__(self, *arg, **kwargs)
self.num_block = None
def __init__(self, *args, **kwargs):
FabioImage.__init__(self, *args, **kwargs)
def __init__(self, *arg, **kwargs):
"""
Generic constructor
"""
FabioImage.__init__(self, *arg, **kwargs)
self.format = ""
def __init__(self, *arg, **kwargs):
"""
Generic constructor
"""
FabioImage.__init__(self, *arg, **kwargs)
self._dtype = numpy.dtype('uint16') # same for all RAXIS images AFAICT
self.endianness = '>' # this may be tested for.
def __init__(self, data=None, header=None, fname=None):
"""
Constructor of the class XSDataImage.
:param str fname: the name of the file to open
"""
FabioImage.__init__(self, data=data, header=header)
self._shape = []
self.size = None
self.coding = None
self._dtype = None
self.rawData = None
self.md5 = None
if fname is not None:
self.filename = fname
self.read(fname)
def __init__(self, *arg, **kwargs):
"""
Generic constructor
"""
FabioImage.__init__(self, *arg, **kwargs)