diff --git a/src/koopmans/files.py b/src/koopmans/files.py index 7374bbada..48bc970e1 100644 --- a/src/koopmans/files.py +++ b/src/koopmans/files.py @@ -80,6 +80,9 @@ def __gt__(self, other): raise TypeError(f'Cannot compare FilePointer with {type(other)}') return self.aspath() > other.aspath() + def __lt__(self, other): + return not self > other + class ParentPlaceholder(HasDirectory): # Placeholder parent for FilePointers that don't have a Workflow/Process/Calculator as a parent