T O P I C R E V I E W |
Werben |
Posted - 01/09/2025 : 08:56:01 AM Hello,
Is it possible to use a multiple peak fitting using only python, then open Nlfit to use a custom dialogue theme and then fit until converge ?
To clarify; I wonder if we can do the same thing as the images below by only using python:
|
2 L A T E S T R E P L I E S (Newest First) |
Werben |
Posted - 01/09/2025 : 3:45:48 PM Hi james,
So I want the programm to choose a theme before the fitting.
For now, I found a sort of compromise by making a labtalk programm that calls the python programm to launch the graph, and then fitting with my theme with talklab.
I'll try these codes, thank you
Thomas |
YimingChen |
Posted - 01/09/2025 : 2:34:22 PM Hi,
First of all, Multiple Peak Fit involves manually specifying peaks on the graph. Do you want Python to pause at this point to allow peak selection before running the fitting with the saved settings? Or are you looking to fit just one peak (shown on the graph) or fixed number of peaks?
If there is a fixed number of peaks to fit, you can run the fitting on one dataset and save the workbook as an analysis template (which will preserve the fitting settings), then use Python to load other datasets into that template for batch fitting. Please refer to this sample code. https://www.originlab.com/doc/en/python/Examples/Analysis#Load_and_Run_Multiple_Linear_Fit_Templates
Another option is to use the Python class model for fitting. Please refer to this sample code. https://www.originlab.com/doc/en/python/Examples/Analysis#Sequential_Fit_Multiple_Files
James |
|
|