Skip to content

Commit

Permalink
Monkeypatch get_objects_to_hash
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhollas committed Jan 8, 2025
1 parent 1bc688a commit 09b31c8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions aiida_test_cache/archive_cache/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,12 @@ class MockNodeCaching(node_caching_class): #type: ignore
NodeCaching subclass with stripped down _get_objects_to_hash method
"""

# Compatibility with aiida-core < 2.6
# In https://github.com/aiidateam/aiida-core/pull/6323
def _get_objects_to_hash(self):
return self.get_objects_to_hash()

def get_objects_to_hash(self):
return hash_objects_func(self)

# Compatibility with aiida-core < 2.6
Expand Down

0 comments on commit 09b31c8

Please sign in to comment.