Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Udjusted the documentation regarding the creating of a pseudo family. #173

Merged
merged 4 commits into from
Oct 29, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docs/source/design.rst
Original file line number Diff line number Diff line change
Expand Up @@ -71,17 +71,17 @@ A pseudopotential family can be constructed manually, by first constructing the
from aiida import plugins

UpfData = plugins.DataFactory('pseudo.upf')
PseudoPotentialFamily = plugins.GroupFactory('pseudo')
PseudoPotentialFamily = plugins.GroupFactory(entry_point_name='pseudo.family')
Minotakm marked this conversation as resolved.
Show resolved Hide resolved

pseudos = []

for filepath in ['Ga.upf', 'As.upf']:
with open(filepath, 'rb') as stream:
pseudo = UpfData(stream)
pseudos.append(pseudo)
pseudo = UpfData(file=stream)
sphuber marked this conversation as resolved.
Show resolved Hide resolved
pseudos.append(pseudo.store())

family = PseudoPotentialFamily(label='pseudos/upf').store()
family.append(pseudos)
family.add_nodes(pseudos)

Note that as with any :py:class:`~aiida.orm.Group`, it has to be stored before nodes can be added.
If you have a folder on disk that contains various pseudopotentials for different elements, there is an even easier way to create the family automatically:
Expand Down