Skip to content

Commit a678f31

Browse files
committed
more fixes
1 parent 5b810d3 commit a678f31

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

dqc/api/properties.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ def _hessian_pos(qc: BaseQCCalc) -> torch.Tensor:
348348
atompos = system.atompos
349349

350350
# check if the atompos requires grad
351-
_check_differentiability(atompos, "atom positions", "optimal geometry")
351+
_check_differentiability(atompos, "atom positions", "hessian")
352352

353353
# calculate the jacobian
354354
jac_e_pos = _jac(ene, atompos, create_graph=True) # (natoms * ndim)
@@ -490,7 +490,7 @@ def _optimal_geometry(qc: BaseQCCalc) -> torch.Tensor:
490490
atompos = system.atompos
491491

492492
# check if the atompos requires grad
493-
_check_differentiability(atompos, "atom positions", "hessian")
493+
_check_differentiability(atompos, "atom positions", "optimal geometry")
494494

495495
# get the energy for a given geometry
496496
def _get_energy(atompos: torch.Tensor) -> torch.Tensor:

dqc/system/base_system.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def getparamnames(self, methodname: str, prefix: str = "") -> List[str]:
8383
@abstractmethod
8484
def make_copy(self, **kwargs) -> BaseSystem:
8585
"""
86-
Returns a copy of the system identical to the orginal expect for new
86+
Returns a copy of the system identical to the orginal except for new
8787
parameters set in the kwargs.
8888
"""
8989
pass

dqc/system/mol.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -297,12 +297,12 @@ def getparamnames(self, methodname: str, prefix: str = "") -> List[str]:
297297

298298
def make_copy(self, **kwargs) -> Mol:
299299
"""
300-
Returns a copy of the system identical to the orginal expect for new
300+
Returns a copy of the system identical to the orginal except for new
301301
parameters set in the kwargs.
302302
303303
Arguments
304304
---------
305-
kwargs
305+
**kwargs
306306
Must be the same kwargs as Mol.
307307
"""
308308
# create dictionary of all parameters

dqc/system/sol.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -245,12 +245,12 @@ def getparamnames(self, methodname: str, prefix: str = "") -> List[str]:
245245

246246
def make_copy(self, **kwargs) -> Sol:
247247
"""
248-
Returns a copy of the system identical to the orginal expect for new
248+
Returns a copy of the system identical to the orginal except for new
249249
parameters set in the kwargs.
250250
251251
Arguments
252252
---------
253-
kwargs
253+
**kwargs
254254
Must be the same kwargs as Sol.
255255
"""
256256
# create dictionary of all parameters

0 commit comments

Comments
 (0)