On Thu, Oct 26, 2017 at 05:08:46PM -0700, Fred marlton wrote:
...
> Is there any difference between doing refinements in PdfFit2 and PdfGui?
> (aside from the GUI)
Hi Fred,
PDFfit2 is the fitting engine for PDFgui therefore it will
give the same results given a refinement problem defined in
equivalent way. Besides GUI and data organization, the main
extra features in PDFgui are space group symmetry functions
for expanding unit cell and generating symmetry-related
constraints. Although these can be specified in PDFfit2
scripts as well, there are no helper functions so it would
be quite tedious and error prone task.
> I personally prefer using PdfFit2 and writing python scripts as it's
> similar to writing input files for Topas-Academic and great for batch
> fitting. But I found PdfGui to be really useful for getting started.
If you need batch fitting beyond the predefined PDFgui macros,
perhaps the diffpy.pdfgui.tui module is a way to go. It has
functions to open an existing project file and explore, modify,
run, and save it from a Python script. There is a simple example
for the `tui` use at
https://github.com/diffpy/diffpy.pdfgui/blob/master/doc/tutorial/tui_mno_bond_lengths.py
For a more advanced use you'd need to check the API functions in
the diffpy.pdfgui.control module; in particular those provided
by the Fitting, FitDataSet and FitStructure classes.
Hope this helps,
Pavol
--
Dr. Pavol Juhas
Computational Science Initiative
Brookhaven National Laboratory
P.O. Box 5000
Upton, NY 11973-5000