Skip to content

Commit

Permalink
adding sum (experimental)
Browse files Browse the repository at this point in the history
  • Loading branch information
floriankrb committed Nov 21, 2024
1 parent 7267517 commit aa6ec0a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/anemoi/transform/filters/sum.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def forward(self, data):
return self._transform(data, self.forward_transform, *self.args)

def backward(self, data):
raise NotImplementedError("Fire is not reversible")
raise NotImplementedError("Sum is not reversible")

def forward_transform(self, *args):
"""Sum the fuel components to get the total fuel"""
Expand All @@ -44,5 +44,5 @@ def forward_transform(self, *args):

yield self.new_field_from_numpy(total, template=template, param=self.name)

def backward_transform(self, total_fuel):
raise NotImplementedError("Fire is not reversible")
def backward_transform(self, data):
raise NotImplementedError("Sum is not reversible")

0 comments on commit aa6ec0a

Please sign in to comment.