-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #48 from albgar/FixData
Fix data
- Loading branch information
Showing
7 changed files
with
96 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
from aiida.orm.groups import Group | ||
|
||
|
||
class PsfFamily(Group): | ||
"""Group that represents a pseudo potential family containing `PsfData` nodes.""" | ||
|
||
|
||
class PsmlFamily(Group): | ||
"""Group that represents a pseudo potential family containing `PsmlData` nodes.""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
def test_pseudos_classmethods(generate_psf_data, generate_psml_data): | ||
|
||
from aiida_siesta.data.psml import PsmlData | ||
from aiida_siesta.data.psf import PsfData | ||
|
||
assert PsfData.get_psf_groups() == [] | ||
assert PsmlData.get_psml_groups() == [] | ||
|
||
#get_psf_group(cls, group_label) | ||
|
||
#from_md5 | ||
|
||
#get_or_create | ||
|
||
def test_pseudo(generate_psf_data, generate_psml_data): | ||
|
||
psf = generate_psf_data('Si') | ||
psml = generate_psml_data('Si') | ||
|
||
assert psf.get_psf_family_names() == [] | ||
assert psml.get_psml_family_names() == [] | ||
|
||
#set_file | ||
#assert 'md5' in psf.attributes |