コード例 #1
0
ファイル: FormatSMVADSCSN920.py プロジェクト: cctbx/dxtbx
    def understand(image_file):
        """Check to see if this is ADSC SN 920."""

        # check this is detector serial number 920

        size, header = FormatSMVADSCSN.get_smv_header(image_file)

        return int(header["DETECTOR_SN"]) == 920
コード例 #2
0
    def understand(image_file):
        '''Check to see if this is ADSC SN 928.'''

        # check this is detector serial number 928

        size, header = FormatSMVADSCSN.get_smv_header(image_file)
        if int(header['DETECTOR_SN']) != 928:
            return False

        return True
コード例 #3
0
  def understand(image_file):
    '''Check to see if this is ADSC SN 928.'''

    # check this is detector serial number 928

    size, header = FormatSMVADSCSN.get_smv_header(image_file)
    if int(header['DETECTOR_SN']) != 928:
      return False

    return True
コード例 #4
0
    def understand(image_file):
        '''Check to see if this is ADSC SN 458 or 914.'''

        # check this is detector serial number 458 or 914

        size, header = FormatSMVADSCSN.get_smv_header(image_file)

        if int(header['DETECTOR_SN']) not in (458, 914):
            return False

        return True
コード例 #5
0
    def understand(image_file):
        """Check to see if this is ADSC SN 926."""

        # check this is detector serial number 926 (or 907)

        size, header = FormatSMVADSCSN.get_smv_header(image_file)

        if int(header["DETECTOR_SN"]) not in [926, 907]:
            return False

        return True
コード例 #6
0
    def understand(image_file):
        """Check to see if this is ADSC SN 905."""

        # check this is detector serial number 905

        size, header = FormatSMVADSCSN.get_smv_header(image_file)

        if int(header["DETECTOR_SN"]) != 905:
            return False

        return True
コード例 #7
0
ファイル: FormatSMVADSCSN457.py プロジェクト: hbrunie/dxtbx
    def understand(image_file):
        """Check to see if this is ADSC SN 457."""

        # check this is detector serial number 457

        size, header = FormatSMVADSCSN.get_smv_header(image_file)

        if int(header["DETECTOR_SN"]) != 457:
            return False

        return True
コード例 #8
0
  def understand(image_file):
    '''Check to see if this is ADSC SN 458 or 914.'''

    # check this is detector serial number 458 or 914

    size, header = FormatSMVADSCSN.get_smv_header(image_file)

    if int(header['DETECTOR_SN']) not in (458, 914):
      return False

    return True