diff options
-rw-r--r-- | Wrappers/Python/ccpi/framework.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Wrappers/Python/ccpi/framework.py b/Wrappers/Python/ccpi/framework.py index 3cfa2a0..fc1aa21 100644 --- a/Wrappers/Python/ccpi/framework.py +++ b/Wrappers/Python/ccpi/framework.py @@ -343,6 +343,9 @@ class DataSet(object): raise ValueError('Dimensions do not match') # __rpow__ + def sum(self): + return DataSet(self.as_array().sum(), + dimension_labels=self.dimension_labels) # in-place arithmetic operators: # (+=, -=, *=, /= , //=, |