Skip to content

Commit

Permalink
fix: len in SpatioTemporalZonalAnalysis
Browse files Browse the repository at this point in the history
  • Loading branch information
martibosch committed Dec 5, 2023
1 parent ea7cde5 commit d074f32
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pylandstats/spatiotemporal.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,9 @@ def __init__(
# `dates` argument
self.dates = self.stas[0].dates

def __len__(self): # noqa: D105
return sum([len(sta) for sta in self.stas])

def compute_class_metrics_df( # noqa: D102
self, *, metrics=None, classes=None, metrics_kws=None, fillna=None
):
Expand Down

0 comments on commit d074f32

Please sign in to comment.