Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use logging/warnings instead of print when loading force constants from Phonopy #325

Open
RastislavTuranyi opened this issue Nov 8, 2024 · 0 comments

Comments

@RastislavTuranyi
Copy link

Hi!

Loading force constants from Phonopy can generate multiple "warnings" e.g. Force constants not found in 4-benzylaniline_683106-phonopy.yaml, attempting to read from 4-benzylaniline_683106-force_constants.hdf5 which takes a lot of terminal space when I run many calculations in a script. Therefore, I tried looking into disabling these stdout prints, but it turned out that they are hardcoded print statements.

Would it be possible to use something like logging or warnings.warn to log these messages? That way, it would be possible to intercept them upstream

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant