# Modifying pseudopotential group after it is created from archive

**URL:** <https://aiida.discourse.group/t/modifying-pseudopotential-group-after-it-is-created-from-archive/483>\
**Category:** General Usage\
**Created:** [October 28, 2024, 5:24pm UTC](https://aiida.discourse.group/t/modifying-pseudopotential-group-after-it-is-created-from-archive/483 "2024-10-28T17:24:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kayahan\_Saritas](https://yyz2.discourse-cdn.com/free1/user_avatar/aiida.discourse.group/kayahan_saritas/32/209_2.png) [@Kayahan\_Saritas](https://aiida.discourse.group/u/Kayahan_Saritas)\
**Post date:** [October 28, 2024, 5:24pm UTC](https://aiida.discourse.group/t/modifying-pseudopotential-group-after-it-is-created-from-archive/483/1 "2024-10-28T17:24:10Z")

</div>

I created a PP group using the following command using the correlation consistent PP in [https://pseudopotentiallibrary.org](https://pseudopotentiallibrary.org). This is not one of the default libraries in aiida-pseudo.

aiida-pseudo install family opt\_upf -P pseudo.upf

However, I would need to modify the PP library from time to time, and I would like to swap PP files for specific elements or add new elements after setting up the group as above. What is the best way to proceed? Should I delete the group and rerun the command as above? I have not yet found an example where deleting PP group is shown. My only working solution now is to delete the aiida profile, but I think that is not the ideal solution.

Thanks,  
Kayahan

---

<div class="post-metadata">

**Author:** ![sphuber](https://yyz2.discourse-cdn.com/free1/user_avatar/aiida.discourse.group/sphuber/32/6_2.png) [@sphuber](https://aiida.discourse.group/u/sphuber)\
**Post date:** [October 28, 2024, 7:25pm UTC](https://aiida.discourse.group/t/modifying-pseudopotential-group-after-it-is-created-from-archive/483/2 "2024-10-28T19:25:46Z")

</div>

Hi Kayahan, the most important thing to remember is that a pseudopotential family created with `aiida-pseudo` is just a `Group` as it is in `aiida-core`, i.e., it is just a collection of nodes. You can add and remove nodes (`UpfData` nodes that represent the pseudos in your case) from a group as often as you want. Have a look at the [documentation for groups](https://aiida.readthedocs.io/projects/aiida-core/en/stable/howto/data.html#organizing-data) for lots of examples.

If you are just adding new elements to a family, I would simply add them to the pseudo family group you already have. If you need to change the pseudo for an element, you have two options: replace the existing pseudo, or create a new pseudo family with the new pseudo. If you still want to use the old family, I would recommend simply creating a new family and replacing the pseudo for the target element. Otherwise, you can simply keep the current family and replace the pseudo.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/aiida/original/1X/c417197d3750949351575d03ed03f5e2ad32e649.png) [@system](https://aiida.discourse.group/u/system)\
**Post date:** [November 3, 2024, 3:26pm UTC](https://aiida.discourse.group/t/modifying-pseudopotential-group-after-it-is-created-from-archive/483/3 "2024-11-03T15:26:36Z")

</div>

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.
