Skip to content

Commit

Permalink
Update Type Hint for energy_correction
Browse files Browse the repository at this point in the history
Fix the type hint, it can either be a list of float or a single float. so I change it to a union.
  • Loading branch information
ShuaishuaiYuan authored Oct 23, 2024
1 parent ca16360 commit 4a54fb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flare/learners/lmpotf.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def __init__(
rcut: float,
type2number: Union[(int, List[int])],
dftcalc: object,
energy_correction: List[float] = 0.0,
energy_correction: Union[(float, List[float])] = 0.0,
force_training=True,
energy_training=True,
stress_training=True,
Expand Down

0 comments on commit 4a54fb1

Please sign in to comment.