diff --git a/src/pytesmo/validation_framework/metric_calculators_adapters.py b/src/pytesmo/validation_framework/metric_calculators_adapters.py index 3425489..0044770 100644 --- a/src/pytesmo/validation_framework/metric_calculators_adapters.py +++ b/src/pytesmo/validation_framework/metric_calculators_adapters.py @@ -133,7 +133,7 @@ def calc_metrics(self, data, gpi_info): for setname, distr in self.subsets.items(): if len(data.index) == 0: - df = pd.DataFrame() + df = data else: df = distr.select(data) ds = self.cls.calc_metrics(df, gpi_info=gpi_info)