Skip to content

Commit

Permalink
warn
Browse files Browse the repository at this point in the history
  • Loading branch information
pierre-24 committed Mar 14, 2024
1 parent ba1f8e2 commit 6d6811d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion phonopy_vibspec/phonons_analyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,10 @@ def __init__(
l_logger.info('Analyze {} modes (including acoustic)'.format(3 * self.N))
self.frequencies = numpy.sqrt(numpy.abs(eigv.real)) * numpy.sign(eigv.real) * VaspToCm # in [cm⁻¹]

l_logger.info('The 5 first modes are at (in cm⁻¹) {}'.format(
if self.frequencies[0] < -30:
l_logger.warn('The first frequency is very small: {:.3f} cm⁻¹'.format(self.frequencies[0]))

l_logger.info('The 5 first modes are {}'.format(
', '.join('{:.3f}'.format(x) for x in self.frequencies[:5]))
)

Expand Down

0 comments on commit 6d6811d

Please sign in to comment.