Пример #1
0
  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
Пример #2
0
  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
Пример #3
0
    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
Пример #4
0
    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
Пример #5
0
    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