Exemple #1
0
            '+x', '-y', (pixel_size, pixel_size), image_size,
            (underload, overload), [])

    def _goniometer(self):
        '''Return a model for a simple single-axis goniometer. This should
    probably be checked against the image header.'''

        return self._goniometer_factory.single_axis_reverse()

    def _scan(self):
        '''Return the scan information for this image. There may be
    no timestamps in there...'''

        format = self._scan_factory.format('SMV')
        exposure_time = float(self._header_dictionary['TIME'])
        epoch = 0
        osc_start = float(self._header_dictionary['OSC_START'])
        osc_range = float(self._header_dictionary['OSC_RANGE'])

        return self._scan_factory.single(self._image_file, format,
                                         exposure_time, osc_start, osc_range,
                                         epoch)


if __name__ == '__main__':

    import sys

    for arg in sys.argv[1:]:
        print FormatSMVADSCSN.understand(arg)
        (beam_y, (image_size[1] * pixel_size) - beam_x),
        '+x', '-y',
        (pixel_size, pixel_size), image_size, (underload, overload), [])

  def _goniometer(self):
    '''Return a model for a simple single-axis goniometer. This should
    probably be checked against the image header.'''

    return self._goniometer_factory.single_axis_reverse()

  def _scan(self):
    '''Return the scan information for this image. There may be
    no timestamps in there...'''

    format = self._scan_factory.format('SMV')
    exposure_time = float(self._header_dictionary['TIME'])
    epoch = 0
    osc_start = float(self._header_dictionary['OSC_START'])
    osc_range = float(self._header_dictionary['OSC_RANGE'])

    return self._scan_factory.single(
        self._image_file, format, exposure_time,
        osc_start, osc_range, epoch)

if __name__ == '__main__':

  import sys

  for arg in sys.argv[1:]:
    print FormatSMVADSCSN.understand(arg)