The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
 All Forums
 Origin Forum
 Origin Forum
 Multiple peak fitting with python

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

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

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000