v0.5.0
Pre-release-
New Features:
- New command-line tool
euphonic-powder-mapallows generation
and plotting of powder-averaged S(|q|,w) and DOS maps. - New
QpointFrequenciesobject which allows storage of frequencies
without eigenvectors, meaning that memory usage can be reduced if
eigenvectors are not required. StructureFactornow has aweightsattribute and can be used
to calculate DOS withcalculate_dosand get dispersion with
get_dispersionSpectrum1D,Spectrum1DCollectionandSpectrum2Dobjects
have a newmetadataattribute, see their docstrings for details- Euphonic can now read DOS/PDOS from CASTEP .phonon_dos files with
Spectrum1D.from_castep_phonon_dosand
Spectrum1DCollection.from_castep_phonon_dos - Adaptive broadening is now available for DOS, which can obtain a
more representative DOS than standard fixed-width broadening. See
the docs <https://euphonic.readthedocs.io/en/latest/dos.html#adaptive-broadening>_
for details - Adaptive broadening can be used in the
euphonic-dostool with the
--adaptiveargument
- New command-line tool
-
Improvements:
-
Improved default behaviour for C extension use and number of threads:
- By default the C extension will be used if it is installed
- By default the number of threads will be set by
multiprocessing.cpu_count() - The environment variable
EUPHONIC_NUM_THREADScan be used to set
a specific number of threads, which takes priority over
multiprocessing.cpu_count() fall_back_on_pythonargument has been removed and superseded by the
defaultuse_c=Nonebehaviourthreadpoolctl.threadpool_limitsis used to limit the number of threads
used by numerical libraries in Euphonic C function calls, resulting in
better overall performance
-
Command-line interfaces have been refactored, giving a more
uniform set of options and clearer sections of related arguments
on the interactive help pages.- It is now possible where appropriate to specify Monkhorst-Pack
sampling with a single-parameter--q-spacingas an
alternative to setting Monkhorst-Pack divisions. This approach
will account for the size and shape of reciprocal-lattice cells.
- It is now possible where appropriate to specify Monkhorst-Pack
-
Build process tweaks
-
On Linux, the build process will now respect a user-defined
C-compiler variableCC. -
On Mac OSX, the build process will now respect a user-defined
C-compiler variableCC. Homebrew library paths will only be
set ifCCis empty and thebrewcommand is available.
These tweaks are intended to facilitate Conda packaging.
-
-
-
Breaking changes:
-
The
--q-distanceargument toeuphonic-intensity-maphas
been renamed to--q-spacingfor consistency with other tools. -
Debye-Waller calculation in
euphonic-intensity-mapis now
enabled by setting--temperature, which no longer has a
default value. -
Default Monkhorst-Pack meshes (i.e. [6, 6, 6] in
euphonic-dos
and [20, 20, 20] insample_sphere_structure_factor()) have
been replaced by default grid-spacing values. -
The scaling of density of states has changed, due to a change
in implementation
-