worksheet_MTTF=worksheets[1]#Define the worksheet with Time-to-Failure data
worksheet_MTTR=worksheets[2]#Define the worksheet with Time-to-Repair data
A=Import_Excel()#Call the Python object Import_Excel
A=ImportExceldata()#Call the Python object Import_Excel
ProcessingTimes=A.Input_data(worksheet_ProcessingTimes,workbook)#Create the Processing Times dictionary with key the Machine 1 and values the processing time data
MTTF=A.Input_data(worksheet_MTTF,workbook)#Create the MTTF dictionary with key the Machine 1 and time-to-failure data
MTTR=A.Input_data(worksheet_MTTR,workbook)#Create the MTTR Quantity dictionary with key the Machine 1 and time-to-repair data
#======================== Output preparation: output the values prepared in the CMSD information model of this model ====================================================#
#======================== Output preparation: output the values prepared in the CMSD information model of this model ====================================================#
ifnotcmsdFile:
datafile=(os.path.join(os.path.dirname(os.path.realpath(__file__)),CMSDFileName))#It defines the name or the directory of the XML file that is manually written the CMSD information model
tree=et.parse(datafile)#This file will be parsed using the XML.ETREE Python library
jsonFile.write(json.dumps(data2,indent=True))#It writes the updated data to the JSON file
jsonFile.close()#It closes the file
#================================ Calling the ExcelOutput object, outputs the outcomes of the statistical analysis in xls files =============================================#