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

Too long log on screen when parsing huge amount of data. #55

Closed
Cloudac7 opened this issue May 31, 2024 · 2 comments
Closed

Too long log on screen when parsing huge amount of data. #55

Cloudac7 opened this issue May 31, 2024 · 2 comments

Comments

@Cloudac7
Copy link

As I am manually parsing hundreds of single point calculations, it might cause the log like following:

--- You are parsing data using package Cp2kData ---
Atom names are fake chemical symbols as you set in cp2k input.
--- You are parsing data using package Cp2kData ---
--- You are parsing data using package Cp2kData ---
Atom names are fake chemical symbols as you set in cp2k input.
--- You are parsing data using package Cp2kData ---
--- You are parsing data using package Cp2kData ---
Atom names are fake chemical symbols as you set in cp2k input.
--- You are parsing data using package Cp2kData ---
--- You are parsing data using package Cp2kData ---
Atom names are fake chemical symbols as you set in cp2k input.
--- You are parsing data using package Cp2kData ---
--- You are parsing data using package Cp2kData ---
Atom names are fake chemical symbols as you set in cp2k input.
--- You are parsing data using package Cp2kData ---
--- You are parsing data using package Cp2kData ---
Atom names are fake chemical symbols as you set in cp2k input.
--- You are parsing data using package Cp2kData ---
--- You are parsing data using package Cp2kData ---
Atom names are fake chemical symbols as you set in cp2k input.
--- You are parsing data using package Cp2kData ---
--- You are parsing data using package Cp2kData ---
Atom names are fake chemical symbols as you set in cp2k input.
--- You are parsing data using package Cp2kData ---
--- You are parsing data using package Cp2kData ---
Atom names are fake chemical symbols as you set in cp2k input.
--- You are parsing data using package Cp2kData ---
--- You are parsing data using package Cp2kData ---
Atom names are fake chemical symbols as you set in cp2k input.
--- You are parsing data using package Cp2kData ---
--- You are parsing data using package Cp2kData ---
Atom names are fake chemical symbols as you set in cp2k input.
--- You are parsing data using package Cp2kData ---
--- You are parsing data using package Cp2kData ---
Atom names are fake chemical symbols as you set in cp2k input.
--- You are parsing data using package Cp2kData ---
--- You are parsing data using package Cp2kData ---
Atom names are fake chemical symbols as you set in cp2k input.
--- You are parsing data using package Cp2kData ---
--- You are parsing data using package Cp2kData ---
Atom names are fake chemical symbols as you set in cp2k input.
--- You are parsing data using package Cp2kData ---
--- You are parsing data using package Cp2kData ---
Atom names are fake chemical symbols as you set in cp2k input.
--- You are parsing data using package Cp2kData ---
--- You are parsing data using package Cp2kData ---
Atom names are fake chemical symbols as you set in cp2k input.
--- You are parsing data using package Cp2kData ---
--- You are parsing data using package Cp2kData ---
Atom names are fake chemical symbols as you set in cp2k input.
--- You are parsing data using package Cp2kData ---

It is too long to do any other thing, so it might be a good idea to add a silent mode. And in my opinion, print is not an elegent way to print log in Python, while using logger.info() might be more popular.

So I just submit my concern as an issue.

@robinzyb
Copy link
Owner

great suggestions. I will refactor print to logger

@robinzyb
Copy link
Owner

#61
I move these information to debug level. However some warnings are still set at warning level. If you don't want to see them, just set environment variable CP2KDATA_LOG_LEVEL to ERROR or CRITICAL

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

2 participants