From ce2478466751e48492a7f63227ee9634abe3e3a9 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 24 Dec 2024 09:17:50 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- deepmd/pt/model/model/property_model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deepmd/pt/model/model/property_model.py b/deepmd/pt/model/model/property_model.py index 26965545aa..03c56f74e7 100644 --- a/deepmd/pt/model/model/property_model.py +++ b/deepmd/pt/model/model/property_model.py @@ -81,7 +81,7 @@ def get_intensive(self) -> bool: @torch.jit.export def get_var_name(self) -> str: """Get the name of the property.""" - if hasattr(obj, 'get_var_name') and callable(getattr(obj, 'get_var_name')): + if hasattr(obj, "get_var_name") and callable(getattr(obj, "get_var_name")): return self.get_fitting_net().var_name else: raise NotImplementedError