XRD - curve fitting LMFIT was used to curve fit experimental X-ray diffraction data. data/scan1.txt : Si - reference sample. data/scan2.txt : unknown sample.