Skip to content

Commit

Permalink
fix for logpath is None
Browse files Browse the repository at this point in the history
  • Loading branch information
HydrogenSulfate committed Sep 11, 2024
1 parent 8fe5f64 commit 31edbb1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion deepmd/pt/entrypoints/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,11 @@ def main(args: Optional[Union[List[str], argparse.Namespace]] = None):
else:
FLAGS = args

set_log_handles(FLAGS.log_level, Path(FLAGS.log_path), mpi_log=None)
set_log_handles(

Check warning on line 558 in deepmd/pt/entrypoints/main.py

View check run for this annotation

Codecov / codecov/patch

deepmd/pt/entrypoints/main.py#L558

Added line #L558 was not covered by tests
FLAGS.log_level,
Path(args.log_path) if args.log_path else None,
mpi_log=None,
)
log.debug("Log handles were successfully set")
log.info("DeePMD version: %s", __version__)

Expand Down

0 comments on commit 31edbb1

Please sign in to comment.