Skip to content

Commit

Permalink
Merge pull request #63 from magnusuMET/data_len
Browse files Browse the repository at this point in the history
Add required abstractmethod
  • Loading branch information
heikoklein authored Nov 6, 2024
2 parents 85c0d4e + 7fe4011 commit 2700ca5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/pyaro/timeseries/Data.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ def slice(self, index): # -> Self: for 3.11
def __getitem__(self, key):
return self.slice(key)

@abc.abstractmethod
def __len__(self) -> int:
pass

@property
def variable(self) -> str:
"""Variable name for all the data
Expand Down

0 comments on commit 2700ca5

Please sign in to comment.