@@ -177,7 +177,17 @@ def create(
177177
178178 return output
179179
180- def create_single (self , system , accuracy = 1e-5 , w = 1 , r_cut = None , g_cut = None , a = None ):
180+ def create_single (
181+ self ,
182+ system ,
183+ accuracy = 1e-5 ,
184+ w = 1 ,
185+ r_cut = None ,
186+ g_cut = None ,
187+ a = None ,
188+ return_descriptor = True ,
189+ return_derivatives = False ,
190+ ):
181191 """
182192 Args:
183193 system (:class:`ase.Atoms` | :class:`.System`): Input system.
@@ -198,6 +208,8 @@ def create_single(self, system, accuracy=1e-5, w=1, r_cut=None, g_cut=None, a=No
198208 Gaussians. If not provided, a default value of :math:`\\ alpha =
199209 \\ sqrt{\\ pi}\\ left(\\ frac{N}{V^2}\\ right)^{1/6}` is used.
200210 Corresponds to the standard deviation of the Gaussians.
211+ return_descriptor: Whether to return the descriptor
212+ return_derivatives: Whether to return the derivatives
201213 """
202214 self .q = system .get_atomic_numbers ()
203215 self .q_squared = self .q ** 2
@@ -213,6 +225,7 @@ def create_single(self, system, accuracy=1e-5, w=1, r_cut=None, g_cut=None, a=No
213225 # specified, use the accuracy and the weighting w to determine default
214226 # similarly as in https://doi.org/10.1080/08927022.2013.840898
215227 if r_cut is None and g_cut is None :
228+
216229 f = np .sqrt (- np .log (accuracy ))
217230 r_cut = f / a
218231 g_cut = 2 * a * f
0 commit comments