Skip to content

Commit

Permalink
PseudoPotentialData: Change return type of get_objects_to_hash
Browse files Browse the repository at this point in the history
The `NodeCaching` class changed its API where the method
`get_objects_to_hash` now returns a dictionary instead of a list.
  • Loading branch information
sphuber committed Oct 29, 2024
1 parent a73028f commit 6d1459b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/aiida_pseudo/data/pseudo/pseudo.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
class PseudoPotentialDataCaching(NodeCaching):
"""Class to define caching behavior of ``PseudoPotentialData`` nodes."""

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


class PseudoPotentialData(plugins.DataFactory('core.singlefile')):
Expand Down

0 comments on commit 6d1459b

Please sign in to comment.