Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
floriankrb committed Jul 4, 2024
1 parent c52339b commit f630732
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/anemoi/registry/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ def __iter__(self):
def __getitem__(self, key):
return list(self)[key]

def __len__(self):
return len(self.get())

def add_new_task(self, **kwargs):
kwargs = kwargs.copy()
assert "action" in kwargs, kwargs
Expand Down

0 comments on commit f630732

Please sign in to comment.