def __init__(self, image_file, **kwargs):
        """Initialise the image structure from the given file."""

        if not self.understand(image_file):
            raise IncorrectFormatError(self, image_file)

        FormatPY.__init__(self, image_file, **kwargs)
예제 #2
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)

        FormatPY.__init__(self, image_file, **kwargs)
  def __init__(self, image_file):
    '''Initialise the image structure from the given file.'''

    assert(self.understand(image_file))

    FormatPY.__init__(self, image_file)
예제 #4
0
    def __init__(self, image_file, **kwargs):
        '''Initialise the image structure from the given file.'''

        assert (self.understand(image_file))

        FormatPY.__init__(self, image_file, **kwargs)
예제 #5
0
    def __init__(self, image_file):
        """Initialise the image structure from the given file."""

        assert self.understand(image_file)

        FormatPY.__init__(self, image_file)