Add slurm partition eq comparison
This commit is contained in:
parent
4eef9d7016
commit
e8ae32cc86
2 changed files with 5 additions and 1 deletions
|
@ -82,6 +82,9 @@ class SlurmPartition:
|
|||
def __len__(self):
|
||||
return len(self.nodes)
|
||||
|
||||
def __eq__(self, other):
|
||||
return str(self) == str(other)
|
||||
|
||||
@property
|
||||
def gpus(self) -> str:
|
||||
"""List of GPUs available."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue