Skip to content

Commit

Permalink
Bump version to 0.1.0 (#169)
Browse files Browse the repository at this point in the history
  • Loading branch information
marvinfriede committed Sep 18, 2024
1 parent 29724b7 commit bd962cf
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 17 deletions.
2 changes: 1 addition & 1 deletion src/dxtb/__version__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@

__all__ = ["__version__", "__tversion__"]

__version__ = "0.0.1"
__version__ = "0.1.0"
"""Version of ``dxtb`` in semantic versioning."""
12 changes: 6 additions & 6 deletions src/dxtb/_src/exlibs/xitorch/_core/editable_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,13 +314,13 @@ def __assert_get_correct_params(self, method, *args, **kwargs):
clsname = method.__self__.__class__.__name__

# get all tensor parameters in the object
all_params, all_names = _get_tensors(self)
# all_params, all_names = _get_tensors(self)

def _get_tensor_name(param):
for i in range(len(all_params)):
if id(all_params[i]) == id(param):
return all_names[i]
return None
# def _get_tensor_name(param):
# for i in range(len(all_params)):
# if id(all_params[i]) == id(param):
# return all_names[i]
# return None

# get the parameter tensors used in the operation and the tensors specified by the developer
oper_names, oper_params = self.__list_operating_params(
Expand Down
5 changes: 0 additions & 5 deletions src/dxtb/_src/integral/driver/pytorch/impls/md/explicit.py
Original file line number Diff line number Diff line change
Expand Up @@ -1442,7 +1442,6 @@ def de_f(
f210 = a * e310 - 2 * e110

e302 = xij * e201 + rpi * e202
e021 = xij * e010 + rpj * e011
e311 = xij * e300 + rpj * e301 + 2 * e302

e410 = rpi * e310 + e311
Expand Down Expand Up @@ -1567,10 +1566,6 @@ def de_f(
e301 = xij * e200 + rpi * e201 + 2 * e202
e310 = rpj * e300 + e301

e202 = xij * e101
e301 = xij * e200 + rpi * e201 + 2 * e202
# e310 = rpj * e300 + e301

e021 = xij * e010 + rpj * e011
e030 = rpj * e020 + e021
e202 = xij * e101
Expand Down
2 changes: 1 addition & 1 deletion src/dxtb/_src/utils/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

import torch

from dxtb._src.typing import TYPE_CHECKING, Any, Tensor, TypeGuard, TypeVar
from dxtb._src.typing import TYPE_CHECKING, Any, Tensor, TypeGuard

if TYPE_CHECKING:
from dxtb._src.exlibs import libcint
Expand Down
1 change: 0 additions & 1 deletion test/test_a_memory_leak/test_higher_deriv.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ def fcn():
del ihelp
del rep
del cache
del energy

# run garbage collector to avoid leaks across other tests
garbage_collect()
Expand Down
1 change: 0 additions & 1 deletion test/test_a_memory_leak/test_repulsion.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ def fcn():
del ihelp
del rep
del cache
del energy
del arep
del zeff
del kexp
Expand Down
2 changes: 0 additions & 2 deletions test/test_a_memory_leak/test_scf.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ def fcn():
del charges
del calc
del result
del energy

# run garbage collector to avoid leaks across other tests
garbage_collect()
Expand Down Expand Up @@ -156,7 +155,6 @@ def fcn():
del charges
del calc
del result
del energy

# run garbage collector to avoid leaks across other tests
garbage_collect()
Expand Down

0 comments on commit bd962cf

Please sign in to comment.