Differences

This shows you the differences between two versions of the page.

Link to this comparison view

insert_peak [2009/09/25 09:20]
johnsoevans created
insert_peak [2012/01/12 02:58] (current)
rowlesmr edit comment markers for auto-colouring
Line 6: Line 6:
  
 <code topas> <code topas>
-'​Description:​ add single peak to e.g. rietveld fit +''​Description:​ add single peak to e.g. rietveld fit 
-'​Description:​ Insert_Peak(twotheta,​ 20, lor, 0.1, fwhm, 0.15, int, 100) +''​Description:​ Insert_Peak(twotheta,​ 20, lor, 0.1, fwhm, 0.15, int, 100) 
-'Why: simple one line makes things easier +''Why: simple one line makes things easier 
-'​Contributed by: John Evans+''​Contributed by: John Evans
  
 macro Insert_Peak(p1,​v1,​p2,​v2,​p3,​v3,​p4,​v4) { macro Insert_Peak(p1,​v1,​p2,​v2,​p3,​v3,​p4,​v4) {
-#m_argu p1 '​2theta +#m_argu p1 ''​2theta 
-#m_argu p2 'lor +#m_argu p2 ''lor 
-#m_argu p3 '​fwhm +#m_argu p3 ''​fwhm 
-#m_argu p4 'int+#m_argu p4 ''int
 If_Prm_Eqn_Rpt(p1,​ v1, min =0.9*v1; max =1.1*v1;) If_Prm_Eqn_Rpt(p1,​ v1, min =0.9*v1; max =1.1*v1;)
 If_Prm_Eqn_Rpt(p2,​ v2, min .000000000001 max 1) If_Prm_Eqn_Rpt(p2,​ v2, min .000000000001 max 1)

Personal Tools