@@ -202,9 +202,21 @@ class AtomCenteredFunction(ArchiveSection):
202
202
)
203
203
204
204
function_type = Quantity (
205
- type = MEnum ('s' , 'p' , 'd' , 'f' , 'g' , 'h' , 'i' , 'j' , 'k' , 'l' ,
206
- 'sp' , 'spd' , 'spdf' ,
207
- ),
205
+ type = MEnum (
206
+ 's' ,
207
+ 'p' ,
208
+ 'd' ,
209
+ 'f' ,
210
+ 'g' ,
211
+ 'h' ,
212
+ 'i' ,
213
+ 'j' ,
214
+ 'k' ,
215
+ 'l' ,
216
+ 'sp' ,
217
+ 'spd' ,
218
+ 'spdf' ,
219
+ ),
208
220
description = """
209
221
L=a+b+c
210
222
The angular momentum of GTO to be added.
@@ -229,7 +241,7 @@ class AtomCenteredFunction(ArchiveSection):
229
241
230
242
contraction_coefficients = Quantity (
231
243
type = np .float32 ,
232
- shape = ['*' ], # Flexible shape to handle combined types (e.g. SP, SPD..)
244
+ shape = ['*' ], # Flexible shape to handle combined types (e.g. SP, SPD..)
233
245
description = """
234
246
List of contraction coefficients corresponding to the exponents.
235
247
""" ,
@@ -255,8 +267,8 @@ def normalize(self, archive: 'EntryArchive', logger: 'BoundLogger') -> None:
255
267
if self .n_primitive is not None :
256
268
if self .exponents is not None and len (self .exponents ) != self .n_primitive :
257
269
raise ValueError (
258
- f" Mismatch in number of exponents: expected { self .n_primitive } , "
259
- f" found { len (self .exponents )} ."
270
+ f' Mismatch in number of exponents: expected { self .n_primitive } , '
271
+ f' found { len (self .exponents )} .'
260
272
)
261
273
262
274
# Resolve combined types
@@ -266,8 +278,8 @@ def normalize(self, archive: 'EntryArchive', logger: 'BoundLogger') -> None:
266
278
expected_coeffs = num_types * self .n_primitive
267
279
if len (self .contraction_coefficients ) != expected_coeffs :
268
280
raise ValueError (
269
- f" Mismatch in contraction coefficients for { self .function_type } type: "
270
- f" expected { expected_coeffs } , found { len (self .contraction_coefficients )} ."
281
+ f' Mismatch in contraction coefficients for { self .function_type } type: '
282
+ f' expected { expected_coeffs } , found { len (self .contraction_coefficients )} .'
271
283
)
272
284
273
285
# Split coefficients into separate lists for each type
@@ -278,16 +290,18 @@ def normalize(self, archive: 'EntryArchive', logger: 'BoundLogger') -> None:
278
290
279
291
# Debug: Log split coefficients
280
292
for t , coeffs in self .coefficient_sets .items ():
281
- logger .info (f" { t } -type coefficients: { coeffs } " )
293
+ logger .info (f' { t } -type coefficients: { coeffs } ' )
282
294
else :
283
- logger .warning (f"No contraction coefficients provided for { self .function_type } type." )
295
+ logger .warning (
296
+ f'No contraction coefficients provided for { self .function_type } type.'
297
+ )
284
298
285
299
# For single types, ensure coefficients match primitives
286
300
elif self .contraction_coefficients is not None :
287
301
if len (self .contraction_coefficients ) != self .n_primitive :
288
302
raise ValueError (
289
- f" Mismatch in contraction coefficients: expected { self .n_primitive } , "
290
- f" found { len (self .contraction_coefficients )} ."
303
+ f' Mismatch in contraction coefficients: expected { self .n_primitive } , '
304
+ f' found { len (self .contraction_coefficients )} .'
291
305
)
292
306
293
307
@@ -330,7 +344,7 @@ class AtomCenteredBasisSet(BasisSetComponent):
330
344
331
345
total_number_of_basis_functions = Quantity (
332
346
type = np .int32 ,
333
- description = "" ,
347
+ description = '' ,
334
348
)
335
349
336
350
functional_composition = SubSection (
0 commit comments