Ignore:
Timestamp:
Apr 12, 2018 4:43:24 PM (5 years ago)
Author:
toby
Message:

add fit profile terms tutorial

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Tutorials/PythonScript/Scripting.htm

    r3218 r3342  
    128128access a GSAS-II project, which is done with a call to
    129129<TT>GSASIIscriptable.G2Project()</tt>. This can be done in one of two
    130 ways: a call with <tt>G2sc.G2Project(filename=</tt><I>file</I><tt>)</tt> creates a new
     130ways: a call with <tt>G2sc.G2Project(newgpx=</tt><I>file</I><tt>)</tt> creates a new
    131131(empty) project, while a call with
    132132<tt>G2sc.G2Project(gpxfile=</tt><I>file</I><tt>)</tt> opens and
     
    138138<P>
    139139In this example, we create a new project by using the
    140 <tt>filename=</tt><I>file</I> argument with this code:
     140<tt>newgpx=</tt><I>file</I> argument with this code:
    141141   
    142142<blockquote><textarea rows="3" cols="70" readonly>
    143143# create a project with a default project name
    144 gpx = G2sc.G2Project(filename='PbSO4.gpx')</textarea></blockquote>
     144gpx = G2sc.G2Project(newgpx='PbSO4.gpx')</textarea></blockquote>
    145145
    146146Note that the file will not actually be created until an operation
     
    583583
    584584<blockquote><textarea rows="4" cols="70" readonly>
    585 gpx = G2sc.G2Project(filename='PbSO4sim.gpx') # create a project
     585gpx = G2sc.G2Project(newgpx='PbSO4sim.gpx') # create a project
    586586# step 1, setup: add a phase to the project
    587587phase0 = gpx.add_phase(os.path.join(datadir,"PbSO4-Wyckoff.cif"),
     
    655655<hr>
    656656<address></address>
    657 <!-- hhmts start -->Last modified: Thu Jan 11 09:41:57 CST 2018 <!-- hhmts end -->
     657<!-- hhmts start -->Last modified: Mon Feb 19 14:53:43 CST 2018 <!-- hhmts end -->
    658658</body> </html>
Note: See TracChangeset for help on using the changeset viewer.