def __init__(self, image_file, **kwargs): '''Initialise the image structure from the given file.''' assert(self.understand(image_file)) FormatCBF.__init__(self, image_file, **kwargs) return
def __init__(self, image_file, **kwargs): '''Initialise the image structure from the given file.''' # It appears Pycbf can not handle unicode filenames (see dials/dials#256) image_file = str(image_file) assert (self.understand(image_file)) FormatCBF.__init__(self, image_file, **kwargs) return
def __init__(self, image_file, **kwargs): """Initialise the image structure from the given file.""" from dxtbx import IncorrectFormatError if not self.understand(image_file): raise IncorrectFormatError(self, image_file) FormatCBF.__init__(self, image_file, **kwargs) self._raw_data = None
def __init__(self, image_file, **kwargs): '''Initialise the image structure from the given file.''' # It appears Pycbf can not handle unicode filenames (see dials/dials#256) image_file = str(image_file) from dxtbx import IncorrectFormatError if not self.understand(image_file): raise IncorrectFormatError(self, image_file) FormatCBF.__init__(self, image_file, **kwargs) self._raw_data = None