Package diffpy :: Package pdfgui :: Package applications :: Module pdfgui
[hide private]
[frames] | no frames]

Module pdfgui

source code

PDFgui   Graphical User Interface for Pair Distribution Function fitting
Usage: pdfgui [project.dpp]

PDFgui is graphical user interface to PDFfit2 - a Python library for PDF
simulation and structure refinement.  PDFgui has many nice features such
as control of multiple fits, integrated plotting, easy setup of sequential
refinements, and saving of entire project in a single file.

Options:
  -h, --help      display this message
  -V, --version   show program version

Debugging options:
  --db-noed       disable exceptions catching to ErrorReportDialog
  --db-nocf       exit without asking to save modified project
  --db-pdb        use Python debugger to handle error exceptions



Functions [hide private]
 
usage()
Show usage info.
source code
 
version() source code
 
processArguments(argv1)
Process command line arguments and store results in pdfguiglobals.
source code
 
main()
Main entry point to PDFgui.
source code
Variables [hide private]
  __id__ = '$Id: pdfgui.py 3053 2009-04-10 05:25:26Z juhas $'
Function Details [hide private]

processArguments(argv1)

source code 
Process command line arguments and store results in pdfguiglobals.
This method updates cmdopts, cmdargs and dbopts attributes in the
pdfguiglobals module.

argv1   -- list of command line arguments excluding the executable

Returns boolean flag to indicate if the execution should continue.
The flag is False, when options contain --help or --version.
Raises GetoptError for invalid options.
Raises ValueError for more than one project file arguments or
when project is not a valid file.