Skip to content

Commit

Permalink
fix typemap loading
Browse files Browse the repository at this point in the history
  • Loading branch information
theAfish committed Oct 16, 2024
1 parent b4d03e5 commit f3e79dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deepmd/entrypoints/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def test(
log.info(f"# testing system : {system}")

# create data class
tmap = dp.get_type_map() if isinstance(dp, DeepPot) or isinstance(dp, DeepProperty) else None
tmap = dp.get_type_map() if isinstance(dp, (DeepPot, DeepProperty)) else None
data = DeepmdData(
system,
set_prefix="set",
Expand Down

0 comments on commit f3e79dc

Please sign in to comment.