From ac6c34ef6ba8d12f6dac4214a72537c1197b50ad Mon Sep 17 00:00:00 2001 From: Jinzhe Zeng Date: Thu, 14 Oct 2021 04:50:48 -0400 Subject: [PATCH] rename `descrpt_list` to `list` to keep compatibility fix #1211 --- deepmd/descriptor/hybrid.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/deepmd/descriptor/hybrid.py b/deepmd/descriptor/hybrid.py index 66a11be959..9d8967faee 100644 --- a/deepmd/descriptor/hybrid.py +++ b/deepmd/descriptor/hybrid.py @@ -26,15 +26,17 @@ class DescrptHybrid (Descriptor): Parameters ---------- - descrpt_list : list + list : list Build a descriptor from the concatenation of the list of descriptors. """ def __init__ (self, - descrpt_list : list + list : list ) -> None : """ Constructor """ + # warning: list is conflict with built-in list + descrpt_list = list if descrpt_list == [] or descrpt_list is None: raise RuntimeError('cannot build descriptor from an empty list of descriptors.') formatted_descript_list = []