#Call the Distributions object and fit (using the Maximum Likelihood Estimation) the lists with the scrap quantity into a discrete statistical distribution, i.e. Geometric distribution
#Call the Distributions object and fit (using the Maximum Likelihood Estimation) the lists with the scrap quantity into a discrete statistical distribution, i.e. Geometric distribution
D=Distributions()
E=Distributions()
dictScrap={}#Create a dictionary that holds the Geometric, which is a discrete statistical distribution of the processing times of each station
dictScrap={}#Create a dictionary that holds the Geometric, which is a discrete statistical distribution of the processing times of each station
dictScrap['MA']=D.Geometric_distrfit(MA_Scrap)
dictScrap['MA']=E.Geometric_distrfit(MA_Scrap)
dictScrap['M1A']=D.Geometric_distrfit(M1A_Scrap)
dictScrap['M1A']=E.Geometric_distrfit(M1A_Scrap)
dictScrap['M1B']=D.Geometric_distrfit(M1B_Scrap)
dictScrap['M1B']=E.Geometric_distrfit(M1B_Scrap)
dictScrap['M2A']=D.Geometric_distrfit(M2A_Scrap)
dictScrap['M2A']=E.Geometric_distrfit(M2A_Scrap)
dictScrap['M2B']=D.Geometric_distrfit(M2B_Scrap)
dictScrap['M2B']=E.Geometric_distrfit(M2B_Scrap)
dictScrap['M3A']=D.Geometric_distrfit(M3A_Scrap)
dictScrap['M3A']=E.Geometric_distrfit(M3A_Scrap)
dictScrap['M3B']=D.Geometric_distrfit(M3B_Scrap)
dictScrap['M3B']=E.Geometric_distrfit(M3B_Scrap)
dictScrap['CB']=D.Geometric_distrfit(CB_Scrap)
dictScrap['CB']=E.Geometric_distrfit(CB_Scrap)
dictScrap['MM']=D.Geometric_distrfit(MM_Scrap)
dictScrap['MM']=E.Geometric_distrfit(MM_Scrap)
dictScrap['FL']=D.Geometric_distrfit(FL_Scrap)
dictScrap['FL']=E.Geometric_distrfit(FL_Scrap)
dictScrap['PrA']=D.Geometric_distrfit(PrA_Scrap)
dictScrap['PrA']=E.Geometric_distrfit(PrA_Scrap)
dictScrap['PrB']=D.Geometric_distrfit(PrB_Scrap)
dictScrap['PrB']=E.Geometric_distrfit(PrB_Scrap)
dictScrap['PaA']=D.Geometric_distrfit(PaA_Scrap)
dictScrap['PaA']=E.Geometric_distrfit(PaA_Scrap)
dictScrap['Pb']=D.Geometric_distrfit(Pb_Scrap)
dictScrap['Pb']=E.Geometric_distrfit(Pb_Scrap)
jsonFile=open('JSON_DBBatchModel.json','r')#It opens the JSON file