From 4d0705eeb442107b3a9d593f1395c8c617136ce7 Mon Sep 17 00:00:00 2001 From: Thomas Nipen Date: Mon, 13 Jan 2025 14:20:09 +0100 Subject: [PATCH] Fixed is_gridded in predict_metadata --- bris/predict_metadata.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bris/predict_metadata.py b/bris/predict_metadata.py index f639def..3bd1d2a 100644 --- a/bris/predict_metadata.py +++ b/bris/predict_metadata.py @@ -48,7 +48,7 @@ def shape(self): @property def is_gridded(self): - return len(self.field_shape) == 2 + return self.field_shape is not None and len(self.field_shape) == 2 @property def grid_lats(self):