Skip to content

hecss.xscale

Deprecated in 0.7

plot_virial_stat is a compatibility alias for hecss.monitor.plot_virial_stat(..., normalised=True) and will be removed in 0.8. Use hecss.monitor directly.

Compatibility alias for the normalised virial plot moved to hecss.monitor.

__all__ = ['plot_virial_stat'] module-attribute

plot_virial_stat(cryst, smpl, normal=True)

Plot normalised virial distributions and return an amplitude matrix.

Deprecated in 0.7: use hecss.monitor.plot_virial_stat with normalised=True instead. This alias will be removed in 0.8.

Source code in hecss/xscale.py
def plot_virial_stat(cryst, smpl, normal=True):
    """Plot normalised virial distributions and return an amplitude matrix.

    Deprecated in 0.7: use ``hecss.monitor.plot_virial_stat`` with
    ``normalised=True`` instead. This alias will be removed in 0.8.
    """
    warnings.warn(
        'hecss.xscale.plot_virial_stat is deprecated; use '
        'hecss.monitor.plot_virial_stat(normalised=True) instead. '
        'This alias will be removed in 0.8.',
        DeprecationWarning,
        stacklevel=2,
    )
    return _plot_virial_stat(cryst, smpl, normal=normal, normalised=True)