def understand(image_file):

        size, header = FormatSMVHamamatsu.get_smv_header(image_file)

        wanted_header_items = ['DETECTOR_NAME']

        for header_item in wanted_header_items:
            if not header_item in header:
                return 0

        return header["DETECTOR_NAME"] == "Hamamatsu C10158DK"
  def understand(image_file):

    size, header = FormatSMVHamamatsu.get_smv_header(image_file)

    wanted_header_items = ['DETECTOR_NAME']

    for header_item in wanted_header_items:
      if not header_item in header:
        return 0

    return header["DETECTOR_NAME"] == "Hamamatsu C10158DK"
    def _start(self):

        FormatSMVHamamatsu._start(self)
  def _start(self):

    FormatSMVHamamatsu._start(self)
    from iotbx.detectors.hamamatsu import HamamatsuImage
    self.detectorbase = HamamatsuImage(self._image_file)
    self.detectorbase.readHeader()