@@ -191,9 +191,16 @@ class AtomCenteredFunction(ArchiveSection):
191
191
"""
192
192
193
193
function_type = Quantity (
194
- type = str ,
194
+ type = MEnum ('S' , 'P' , 'D' , 'F' , 'G' , 'H' , 'I' , 'J' ),
195
+ description = """
196
+ the angular momentum of the shell to be added.
197
+ """ ,
198
+ )
199
+
200
+ n_primitive = Quantity (
201
+ type = int ,
195
202
description = """
196
- Type of the function (e.g. GTO for Gaussian, STO for Slater)
203
+ Number of primitives.
197
204
""" ,
198
205
)
199
206
@@ -215,15 +222,23 @@ class AtomCenteredFunction(ArchiveSection):
215
222
216
223
atom_state = SubSection (sub_section = AtomsState .m_def , repeats = False )
217
224
218
- def __init__ (self , atom_state : AtomsState , function_type : str , exponents : list , contraction_coefficients : list ):
225
+ def __init__ (
226
+ self ,
227
+ atom_state : AtomsState ,
228
+ function_type : str ,
229
+ n_primitive : int ,
230
+ exponents : list ,
231
+ contraction_coefficients : list ,
232
+ ):
219
233
self .atom_state = atom_state
220
234
self .function_type = function_type
235
+ self .n_primitive = n_primitive
221
236
self .exponents = exponents
222
237
self .contraction_coefficients = contraction_coefficients
223
238
224
239
def normalize (self , archive : 'EntryArchive' , logger : 'BoundLogger' ) -> None :
225
240
super ().normalize (archive , logger )
226
- self .name = self .m_def .name
241
+ # self.name = self.m_def.name
227
242
228
243
229
244
class AtomCenteredBasisSet (BasisSetComponent ):
@@ -265,7 +280,7 @@ class AtomCenteredBasisSet(BasisSetComponent):
265
280
266
281
def normalize (self , archive : 'EntryArchive' , logger : 'BoundLogger' ) -> None :
267
282
super ().normalize (archive , logger )
268
- self .name = self .m_def .name
283
+ # self.name = self.m_def.name
269
284
# TODO: set name based on basis functions
270
285
# ? use basis set names from Basis Set Exchange
271
286
0 commit comments