wait ( 's', 0.05 ) #wait further for graph to update path ( 'e' ) + 'samples \\Batch2 \\' for file in os. The graph is then exported as a png image file. The peak parameters are placed on a graph displaying the data and the fit results. Baseline subtraction and peak fitting is performed on the data. In this example, batch peak analysis is performed by importing one data file at a time. This will give you an overall idea as to how easy it is to work with the new originpro package for embedded Python in Origin. The projects can be found in the \Samples\Python sub folder.Ī brief description of each sample and the code associated with the sample are provided below. The projects also have buttons to run the code and to open the code in Code Builder to view, run and debug.
The Python code file is attached to the project. This page lists Python examples added in Origin/OrignPro version 2021 that are based on Origin Project files. 2 How to Execute Python Code from a Button.1.1 Batch Peak Analysis of Multiple Files.