Skip to content

Commit

Permalink
Export kill_timer function
Browse files Browse the repository at this point in the history
  • Loading branch information
marvinfriede committed Sep 30, 2024
1 parent 81397f7 commit c2b052e
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/dxtb/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"""

# import timer first to get correct total time
from dxtb._src.timing import timer
from dxtb._src.timing import timer, kill_timer

timer.start("Import")
timer.start("PyTorch", parent_uid="Import")
Expand Down Expand Up @@ -54,20 +54,25 @@

###############################################################################

# stop timers and remove from global namespace
# stop timers and remove PyTorch from global namespace for cleaner API
del torch
timer.stop("dxtb")
timer.stop("Import")

###############################################################################

__all__ = [
"calculators",
"components",
#
"calculators",
"Calculator",
"GFN1_XTB",
"GFN2_XTB",
#
"IndexHelper",
#
"kill_timer",
"timer",
#
"__version__",
]

0 comments on commit c2b052e

Please sign in to comment.