Changeset 3342 for Tutorials/PythonScript/Scripting.htm
- Timestamp:
- Apr 12, 2018 4:43:24 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Tutorials/PythonScript/Scripting.htm
r3218 r3342 128 128 access a GSAS-II project, which is done with a call to 129 129 <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 new130 ways: a call with <tt>G2sc.G2Project(newgpx=</tt><I>file</I><tt>)</tt> creates a new 131 131 (empty) project, while a call with 132 132 <tt>G2sc.G2Project(gpxfile=</tt><I>file</I><tt>)</tt> opens and … … 138 138 <P> 139 139 In 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: 141 141 142 142 <blockquote><textarea rows="3" cols="70" readonly> 143 143 # create a project with a default project name 144 gpx = G2sc.G2Project( filename='PbSO4.gpx')</textarea></blockquote>144 gpx = G2sc.G2Project(newgpx='PbSO4.gpx')</textarea></blockquote> 145 145 146 146 Note that the file will not actually be created until an operation … … 583 583 584 584 <blockquote><textarea rows="4" cols="70" readonly> 585 gpx = G2sc.G2Project( filename='PbSO4sim.gpx') # create a project585 gpx = G2sc.G2Project(newgpx='PbSO4sim.gpx') # create a project 586 586 # step 1, setup: add a phase to the project 587 587 phase0 = gpx.add_phase(os.path.join(datadir,"PbSO4-Wyckoff.cif"), … … 655 655 <hr> 656 656 <address></address> 657 <!-- hhmts start -->Last modified: Thu Jan 11 09:41:57CST 2018 <!-- hhmts end -->657 <!-- hhmts start -->Last modified: Mon Feb 19 14:53:43 CST 2018 <!-- hhmts end --> 658 658 </body> </html>
Note: See TracChangeset
for help on using the changeset viewer.