Skip to content

Commit 40d593b

Browse files
authored
Update system.py (#524)
The example is wrong? "driver" should be "Driver"? Signed-off-by: Levi Zhou <31941107+ZhouXY-PKU@users.noreply.github.com>
1 parent 3da4651 commit 40d593b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

dpdata/system.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1410,7 +1410,7 @@ def minimize(
14101410
14111411
>>> from dpdata.driver import Driver
14121412
>>> from ase.optimize import BFGS
1413-
>>> driver = driver.get_driver("dp")("some_model.pb")
1413+
>>> driver = Driver.get_driver("dp")("some_model.pb")
14141414
>>> some_system.minimize(minimizer="ase", driver=driver, optimizer=BFGS, fmax=1e-5)
14151415
"""
14161416
if not isinstance(minimizer, Minimizer):

0 commit comments

Comments
 (0)