def process_scale_records(data_file, pdb_file):
    """Takes a :py:class:`.PdbDataFile` and updates it based on the
    SCALE records in the provided :py:class:`.PdbFile`

    :param PdbDataFile data_file: the Data File to update.
    :param PdbFile pdb_file: The source Pdb File"""
    scale1 = pdb_file.get_record_by_name('SCALE1')
    scale2 = pdb_file.get_record_by_name('SCALE2')
    scale3 = pdb_file.get_record_by_name('SCALE3')
    if scale1 or scale2 or scale3:
        data_file._scale = {'s11': scale1[10:20] if scale1 else None, 's12':
            scale1[20:30] if scale1 else None, 's13': scale1[30:40] if
            scale1 else None, 'u1': scale1[45:55] if scale1 else None,
            's21': scale2[10:20] if scale2 else None, 's22': scale2[20:30] if
            scale2 else None, 's23': scale2[30:40] if scale2 else None,
            'u2': scale2[45:55] if scale2 else None, 's31': scale3[10:20] if
            scale3 else None, 's32': scale3[20:30] if scale3 else None,
            's33': scale3[30:40] if scale3 else None, 'u3': scale3[45:55] if
            scale3 else None}
    else:
        data_file._scale = None
