v0.4.0
Pre-release
Pre-release
-
There have been some major changes and improvements to spectra, plotting
and command line tools, including:- New command line tool
euphonic-intensity-mapfor plotting weighted
2D Spectra e.g. Coherent neutron S(Q,w) - Existing command line tools
euphonic-dispersionandeuphonic-dos
have been updated to also read force constants and Phonopy files.
Arguments are also more consistent across tools so some may have changed,
check the command line tool help for details. - New
Spectrum1DCollectionobject for containing 1D spectra with a
shared x-axis (e.g. phonon dispersion modes) - New
plot_1d_to_axisandplot_2d_to_axisfunctions to allow
plotting on specific axes get_bin_centresandget_bin_edgesutility functions on spectra- The
ratioargument toplot_2dhas been removed, it should no longer
be required due to better management of relative axis sizes. - The
btolargument toplot_1dhas been removed, it is recommended
to useSpectrum1D.split()orSpectrum1DCollection.split()instead. - The
plot_dispersionfunction has been removed. It is now recommended
to plot dispersion usingplot_1d(QpointPhononModes.get_dispersion()).
See docs for details.
- New command line tool
-
Other changes:
-
Some of Euphonic's dependency version requirements have been changed, but
can now be relied on with more certainty due to better CI testing. This
includes:- numpy requirement increased from
1.9.1to1.12.1 - matplotlib requirement increased from
1.4.2to2.0.0 - pint requirement decreased from
0.10.1to0.9 - h5py requirement decreased from
2.9.0to2.7.0 - pyyaml requirement decreased from
5.1.2to3.13
- numpy requirement increased from
-
-
Improvements:
yaml.CSafeLoaderis now used instead ofyaml.SafeLoaderby
default, so Phonopy.yamlfiles should load faster- Metadata
__euphonic_version__and__euphonic_class__have been
added to .json file output for better provenance
-
Bug fixes:
- Fix read of Phonopy 'full' force constants from phonopy.yaml and
FORCE_CONSTANTS files - Fix structure factor calculation at gamma points with splitting, see
#107 <https://github.com/pace-neutrons/Euphonic/issues/107>_ - Change broadening implementation from
scipy.signal.fftconvolve
to usescipy.ndimagefunctions for better handling of bright
Bragg peaks, see
#108 <https://github.com/pace-neutrons/Euphonic/issues/108>_
- Fix read of Phonopy 'full' force constants from phonopy.yaml and