Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Jinzhe Zeng <[email protected]>
  • Loading branch information
njzjz committed Jan 12, 2024
1 parent 1e90c7b commit be9e680
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
7 changes: 6 additions & 1 deletion deepmd/loggers.py → deepmd/loggers/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# SPDX-License-Identifier: LGPL-3.0-or-later
"""Alias of deepmd_utils.loggers for backward compatibility."""
from deepmd_utils.loggers import * # noqa: F403

from deepmd_utils.loggers.loggers import (
set_log_handles,
)

__all__ = ["set_log_handles"]
3 changes: 3 additions & 0 deletions deepmd/loggers/loggers.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# SPDX-License-Identifier: LGPL-3.0-or-later
"""Alias of deepmd_utils.loggers.loggers for backward compatibility."""
from deepmd_utils.loggers.loggers import * # noqa: F403

Check warning on line 3 in deepmd/loggers/loggers.py

View check run for this annotation

Codecov / codecov/patch

deepmd/loggers/loggers.py#L2-L3

Added lines #L2 - L3 were not covered by tests
12 changes: 11 additions & 1 deletion deepmd/model/model_stat.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
# SPDX-License-Identifier: LGPL-3.0-or-later
"""Alias for backward compatibility."""
from deepmd_utils.utils.model_stat import * # noqa: F403
from deepmd_utils.utils.model_stat import (
_make_all_stat_ref,
make_stat_input,
merge_sys_stat,
)

__all__ = [
"make_stat_input",
"merge_sys_stat",
"_make_all_stat_ref", # used by tests
]

0 comments on commit be9e680

Please sign in to comment.