Skip to content

Commit 0a9d98b

Browse files
committed
add a quantity for number of primitives
1 parent af88624 commit 0a9d98b

File tree

1 file changed

+20
-5
lines changed

1 file changed

+20
-5
lines changed

src/nomad_simulations/schema_packages/basis_set.py

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -191,9 +191,16 @@ class AtomCenteredFunction(ArchiveSection):
191191
"""
192192

193193
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,
195202
description="""
196-
Type of the function (e.g. GTO for Gaussian, STO for Slater)
203+
Number of primitives.
197204
""",
198205
)
199206

@@ -215,15 +222,23 @@ class AtomCenteredFunction(ArchiveSection):
215222

216223
atom_state = SubSection(sub_section=AtomsState.m_def, repeats=False)
217224

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+
):
219233
self.atom_state = atom_state
220234
self.function_type = function_type
235+
self.n_primitive = n_primitive
221236
self.exponents = exponents
222237
self.contraction_coefficients = contraction_coefficients
223238

224239
def normalize(self, archive: 'EntryArchive', logger: 'BoundLogger') -> None:
225240
super().normalize(archive, logger)
226-
self.name = self.m_def.name
241+
# self.name = self.m_def.name
227242

228243

229244
class AtomCenteredBasisSet(BasisSetComponent):
@@ -265,7 +280,7 @@ class AtomCenteredBasisSet(BasisSetComponent):
265280

266281
def normalize(self, archive: 'EntryArchive', logger: 'BoundLogger') -> None:
267282
super().normalize(archive, logger)
268-
self.name = self.m_def.name
283+
# self.name = self.m_def.name
269284
# TODO: set name based on basis functions
270285
# ? use basis set names from Basis Set Exchange
271286

0 commit comments

Comments
 (0)