def __init__(self, image_file, **kwargs): from dxtbx import IncorrectFormatError if not self.understand(image_file): raise IncorrectFormatError(self, image_file) FormatMultiImage.__init__(self, **kwargs) Format.__init__(self, image_file, **kwargs)
def __init__(self, image_file, **kwargs): if not injected_data: raise IncorrectFormatError(self, image_file) self.header = { "configuration": json.loads(injected_data.get("header2", "")), "info": json.loads(injected_data.get("streamfile_2", "")), } self._goniometer_instance = None self._detector_instance = None self._beam_instance = None self._scan_instance = None FormatMultiImage.__init__(self, **kwargs) Format.__init__(self, image_file, **kwargs) self.setup()
def __init__(self, image_file, **kwargs): ''' Initialise the class ''' assert (self.understand(image_file)) import json self.header = json.load(open(image_file)) self._goniometer_instance = None self._detector_instance = None self._beam_instance = None self._scan_instance = None FormatMultiImage.__init__(self, **kwargs) Format.__init__(self, image_file, **kwargs) self.setup() return
def __init__(self, image_file, **kwargs): ''' Initialise the class ''' assert(self.understand(image_file)) import json self.header = json.load(open(image_file)) self._goniometer_instance = None self._detector_instance = None self._beam_instance = None self._scan_instance = None FormatMultiImage.__init__(self, **kwargs) Format.__init__(self, image_file, **kwargs) self.setup() return
def __init__(self, image_file, **kwargs): ''' Initialise the class ''' from dxtbx import IncorrectFormatError if not self.understand(image_file): raise IncorrectFormatError(self, image_file) import json self.header = json.load(open(image_file)) self._goniometer_instance = None self._detector_instance = None self._beam_instance = None self._scan_instance = None FormatMultiImage.__init__(self, **kwargs) Format.__init__(self, image_file, **kwargs) self.setup() return
def __init__(self, image_file): assert(self.understand(image_file)) FormatMultiImage.__init__(self) Format.__init__(self, image_file)
def __init__(self, image_file, **kwargs): assert(self.understand(image_file)) FormatMultiImage.__init__(self, **kwargs) Format.__init__(self, image_file, **kwargs)
def __init__(self, image_file, **kwargs): if not self.understand(image_file): raise IncorrectFormatError(self, image_file) FormatMultiImage.__init__(self, **kwargs) FormatGatanDM4.__init__(self, image_file, **kwargs)