Skip to content

Commit 5b39cdf

Browse files
authored
Merge pull request #95 from deepmodeling/caic99-patch-1
fix: test data of NVE MD should not be None
2 parents 83cf54a + f129006 commit 5b39cdf

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lambench/tasks/calculator/nve_md/nve_md.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
from ase.units import fs
1111
import numpy as np
1212
import time
13-
from typing import Optional
1413
from lambench.tasks.calculator.nve_md.nve_md_data import TEST_DATA
1514
import logging
1615

@@ -20,7 +19,7 @@ def run_md_nve_simulation(
2019
num_steps: int,
2120
timestep: float,
2221
temperature_K: int,
23-
test_data: Optional[list[Atoms]] = TEST_DATA,
22+
test_data: list[Atoms] = TEST_DATA,
2423
) -> dict[str, float]:
2524
"""
2625
This function runs NVE simulations for a list of test systems using the given model.

0 commit comments

Comments
 (0)