Skip to content

Commit

Permalink
Rename commit_hash to sub_version
Browse files Browse the repository at this point in the history
  • Loading branch information
ladinesa committed Oct 31, 2023
1 parent ee5b099 commit 80d476a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion electronicparsers/exciting/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -2638,7 +2638,7 @@ def parse(self, filepath, archive, logger, **kwargs):

sec_run.program = Program(
name='exciting', version=self.info_parser.get('program_version', '').strip(),
github_commit_hash=self.info_parser.hash_id)
sub_version=self.info_parser.hash_id)

# method goes first since reference needed for sec_scc
if self._calculation_type == 'gw':
Expand Down
2 changes: 1 addition & 1 deletion tests/test_excitingparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def test_strucopt(parser):
archive = EntryArchive()
parser.parse('tests/data/exciting/GaO_strucopt/INFO.OUT', archive, None)

assert archive.run[0].program.github_commit_hash == '1e47a4bd61d2aa73ef68a31c2f3385676bee2c3a'
assert archive.run[0].program.sub_version == '1e47a4bd61d2aa73ef68a31c2f3385676bee2c3a'

sec_systems = archive.run[0].system
assert len(sec_systems) == 15
Expand Down

0 comments on commit 80d476a

Please sign in to comment.