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
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
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
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
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
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