# Instrument instrument = ET.SubElement(measurement, 'instrument') ET.SubElement(instrument, 'name').text = 'Converted from Excel'
If you no longer have access to the original instrument software, or if you are working with legacy data, dedicated converter tools are your best bet. convert excel to xrdml high quality
: A widely used free utility for converting between various XRD formats. It supports converting raw data into formats compatible with Malvern PANalytical software You may need to save your Excel file as a first for PowDLL to recognize the raw intensity/angle data. Profex (BGMN) # Instrument instrument = ET
# Load Excel file wb = openpyxl.load_workbook('input.xlsx') sheet = wb.active # Instrument instrument = ET.SubElement(measurement