-
When I use deepmd-kit's python interface to predict energy, such as: import dpdata
system = dpdata.System(structure_file_path)
labeled_sys= system.predict(dp_model_path)
energy = labeled_sys['energies'][0] the program will print a large amount of log information to the shell dialog box,such as
I find there is a function( import dpdata
from deepmd.loggers.loggers import set_log_handles
from pathlib import Path
log_path = Path('./log-dpmd.txt')
set_log_handles(level=40, log_path=log_path)
system = dpdata.System(structure_file_path)
labeled_sys= system.predict(dp_model_path)
energy = labeled_sys['energies'][0] while the program still printed the same log information to the shell dialog box, meanwhile, log file What should I do to avoid output log information? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Per tensorflow/tensorflow#31870 and tensorflow/tensorflow#54925 (comment), setting the environment variable after importing TF no longer works. You can set the environment variable before importing deepmd. |
Beta Was this translation helpful? Give feedback.
Per tensorflow/tensorflow#31870 and tensorflow/tensorflow#54925 (comment), setting the environment variable after importing TF no longer works.
You can set the environment variable before importing deepmd.