Skip to content

Commit

Permalink
Fix typo in FilePointer comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
elinscott committed Oct 4, 2024
1 parent 5ce387a commit a71a16b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/koopmans/files.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ def is_dir(self):
def __eq__(self, other):
if not isinstance(other, FilePointer):
return False
# Note that we don't check self.parent.absolute_directory
return self.absolute_directory == other.absolute_directory and self.name == other.name
# Note that we only check the parent's directory, not the parent details
return self.parent.absolute_directory == other.parent.absolute_directory and self.name == other.name

def __reduce__(self):
# We don't want to store the entire parent object in the database; we only need the directory information
Expand Down

0 comments on commit a71a16b

Please sign in to comment.