Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
sphuber authored Oct 29, 2024
2 parents dc47078 + bcc0129 commit 39b6461
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/aiida_pseudo/data/pseudo/pseudo.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
class PseudoPotentialDataCaching(NodeCaching):
"""Class to define caching behavior of ``PseudoPotentialData`` nodes."""

def _get_objects_to_hash(self) -> list:
def get_objects_to_hash(self) -> list:
"""Return a list of objects which should be included in the node hash."""
return [self._node.element, self._node.md5]

Expand Down
2 changes: 1 addition & 1 deletion tests/cli/test_install.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import pathlib

import pytest
from aiida.manage.configuration import Config
from aiida.manage.configuration.config import Config
from aiida.orm import QueryBuilder
from aiida_pseudo.cli import cmd_install_family, cmd_install_pseudo_dojo, cmd_install_sssp, install
from aiida_pseudo.data.pseudo.upf import UpfData
Expand Down
2 changes: 1 addition & 1 deletion tests/data/pseudo/test_pseudo.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,4 +233,4 @@ def test_hash(stream, filename, element, are_equal):
right.element = element
right.store()

assert (left.base.caching.get_hash() == right.base.caching.get_hash()) is are_equal
assert (left.base.caching.compute_hash() == right.base.caching.compute_hash()) is are_equal

0 comments on commit 39b6461

Please sign in to comment.