Release notes¶
Version 2.1.0 – 2020-07-15¶
Added¶
New mode
sasfor processing Small Angle Scattering data and for using custom scattering factors.qmax-pushes-qmin coupling of sliders in the
tuneconfigtool.New program
pdfgets3and IPython magic%pdfgets3.
Changed¶
Software distribution format to a universal Python wheel.
tuneconfigdialog to access full Q-range with all qmin, qmax, and qmaxinst sliders. Increased range for the rpoly slider.
Deprecated¶
Software distribution in setuptools egg package.
Removed¶
Support for Python 3.4.
Fixed¶
Support backslash in the
--findoption path argument on Windows. Both forward and back slashes are allowed on Windows, but other platforms must use forward slash.Recipe for platform-dependent Anaconda package.
Bogus test failure when installed in symlinked directory.
Version 2.0.0 – 2018-11-02¶
Added¶
New mode
neutronfor processing constant-wavelength neutron scattering data.Correction for an offset of diffractometer zero angle.
Configuration parameter
twothetazeroand command-line option--twothetazerofor position of the actual zero angle in diffractometer degrees.New program
pdfgetn3and IPython magic%pdfgetn3.Separate configuration file
pdfgetn3.cfgfor thepdfgetn3program.New sub-package
diffpy.pdfgetx.appsfor entry points to all programs.Table of electron scattering factors from E. J. Kirkland, Advanced Computing in Electron Microscopy.
The
+operator for additive pattern groups when matching input files withpdfgetx3 --find.An optional slash-containing entry, e.g.,
dir/, to set the search path forpdfgetx3 --find. Each pattern group may have one path entry which affects the current and subsequent pattern groups. Pattern groups that have only the path entry reuse the previous file patterns, for example,dir1/ .dat$ + dir2/ + dir3/.The
dotfilesflag argument tofuncts.findfilesto also find dot-starting files without an explicit pattern.Support for Python 3.7.
Tutorial examples for constant-wavelength neutron diffraction data.
Changed¶
Initialization arguments of
PDFConfigto set initial configuration values.pathargument offuncts.findfilesto give one search path instead of a list of paths.pdfgetx3 --findto search only the current directory and stop searching in--datapath.Improved PDF accuracy by removing repeated Q-grid interpolation.
Handling of dot files by
pdfgetx3 --findand thefuncts.findfilesfunction. The dotfiles are by default ignored unless explicitly selected by a"^."pattern.Return type of
functs.findfilesfrom IPythonSListto a simplelist.Rename camel case interactive functions to lowercase, i.e., to
loaddata,processfiles,clearsession.Use
config.datapathlookup inprocessfiles(filename).
Deprecated¶
Function
cromermann.felectronatqfor electron scattering factors calculation using Mott-Bethe approximate formula.IPython extension module
diffpy.pdfgetx.ipy_pdfgetx3. Usediffpy.pdfgetx.ipy_magicsinstead.Camel case functions
loadData,processFiles,clearSession.
Removed¶
Support for Python 2.6.
Processing of environment variable
PDFGETX3PATH.Support for IPython 0.x.
Obsolete variable
__gitsha__from theversionmodule.Processing of command line options in
PDFConfigclass.Implicit loading of configuration files in
PDFConfiginstantiation.
Fixed¶
Import of all objects from
matplotlib.pyplotinto an interactive session started byplotdata.Inaccurate G interpolation when rstep is comparable to
pi / qmax.Lone anchor patterns
^,$to match everything.
Version 1.2 – 2018-01-12¶
Added¶
Support for Python 3.4, 3.5, 3.6 in addition to Python 2.6 and 2.7.
Support for IPython 5.0 with preserved compatibility with IPython 0.10 and later.
Support for matplotlib 2.0.
New option
--log=LOGfor theplotdataprogram to set logarithmic scale for either of x or y axis. Theplotdata()function learnt a newlogargument with the same purpose.New argument
axfor theplotdata()function that select a specific matplotlib axis for plotting.Support for Unicode filenames and values in the
configinteractive variable.Processing of parentheses and fractional stoichiometries in chemical formulas as in
Pb (Ti Zr)1/2 O3.Explanatory error message when PDFgetX3 was installed for unsupported Python.
Changed¶
The egg package file was enhanced to support all Python versions. The software is now distributed in a single egg rather than multiple eggs per each Python version.
PDFgetX3 option
--forceto take a boolean argument (yes,no,true, etc.) oronce. The configuration parameterforcecan be likewise set to a bool or to a string"once". This enables a safer one-time overwrite of existing output files.Plot labels to use a proper Unicode “Å” (Ångström) symbols. The “Å” symbol is also used within units in output files.
The
usecolsargument of theloadData()function to also accept scalars, open-endsliceobjects and string-denoted slices such as"1:3"or"1:".The
plotdataprogram andplotdata()function to accept open-end slices for the y-columns selection.The IPython magic function
%pdfgetx3to set the_exit_codevariable as do generic shell commands run from IPython.Inline documentation to use NumPy-style Napoleon format, which is human readable and can be included in the manual.
Release scripts to build software package bundles and documentation in binary-reproducible way.
Deprecated¶
Compatibility with Python 2.6.
Support for IPython 0.x.
Variable
__gitsha__in theversionmodule which was renamed to__git_commit__.
Removed¶
The
holdargument of theplotdata()function, because it was deprecated in matplotlib.Support for multiple x-columns in
plotdataprogram andplotdata()function.Import of all objects from
numpymodule into the interactive session. NumPy is available under thenpname instead.
Fixed¶
Avoid duplicate “.gr.gr” extension when
pdfgetx3is run with option--output=f.gr.Crash on loading custom configuration section from a local file, when that section is missing in global configuration.
Missing checkbox in the
tuneconfigdialog caused by matplotlib bug.