Skip to content

Commit a204ec4

Browse files
committed
add atoms_state reference to AtomCenteredBasisSet
1 parent 0a9d98b commit a204ec4

File tree

1 file changed

+10
-18
lines changed

1 file changed

+10
-18
lines changed

src/nomad_simulations/schema_packages/basis_set.py

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -206,36 +206,20 @@ class AtomCenteredFunction(ArchiveSection):
206206

207207
exponents = Quantity(
208208
type=np.float32,
209-
shape=['*'],
209+
shape=['n_primitive'],
210210
description="""
211211
List of exponents for the basis function.
212212
""",
213213
)
214214

215215
contraction_coefficients = Quantity(
216216
type=np.float32,
217-
shape=['*'],
217+
shape=['n_primitive'],
218218
description="""
219219
List of contraction coefficients corresponding to the exponents.
220220
""",
221221
)
222222

223-
atom_state = SubSection(sub_section=AtomsState.m_def, repeats=False)
224-
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-
):
233-
self.atom_state = atom_state
234-
self.function_type = function_type
235-
self.n_primitive = n_primitive
236-
self.exponents = exponents
237-
self.contraction_coefficients = contraction_coefficients
238-
239223
def normalize(self, archive: 'EntryArchive', logger: 'BoundLogger') -> None:
240224
super().normalize(archive, logger)
241225
# self.name = self.m_def.name
@@ -274,6 +258,14 @@ class AtomCenteredBasisSet(BasisSetComponent):
274258
""",
275259
)
276260

261+
atoms_ref = Quantity(
262+
type=AtomsState,
263+
shape=['*'],
264+
description="""
265+
References to the `AtomsState` sections that define the atoms this basis set applies to.
266+
""",
267+
)
268+
277269
functional_composition = SubSection(
278270
sub_section=AtomCenteredFunction.m_def, repeats=True
279271
) # TODO change name

0 commit comments

Comments
 (0)