diff --git a/src/aiida_pseudo/data/pseudo/pseudo.py b/src/aiida_pseudo/data/pseudo/pseudo.py index 4c37f0d..6712fb6 100644 --- a/src/aiida_pseudo/data/pseudo/pseudo.py +++ b/src/aiida_pseudo/data/pseudo/pseudo.py @@ -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] diff --git a/tests/data/pseudo/test_pseudo.py b/tests/data/pseudo/test_pseudo.py index e003769..8d82254 100644 --- a/tests/data/pseudo/test_pseudo.py +++ b/tests/data/pseudo/test_pseudo.py @@ -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