From 530b470eb51378b35fa0468debe9e62dfe7e49a0 Mon Sep 17 00:00:00 2001 From: Margriet Palm Date: Fri, 21 Jun 2024 07:55:26 +0200 Subject: [PATCH] Add changes --- CHANGES.rst | 6 ++++++ threedigrid_builder/interface/dict_out.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGES.rst b/CHANGES.rst index 39df9953..17c7f6ce 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,6 +1,12 @@ Changelog of threedigrid-builder ================================ +1.14.3 (unreleased) +------------------- + +- Fix error for schematisation without any breaches + + 1.14.2 (2024-05-17) ------------------- diff --git a/threedigrid_builder/interface/dict_out.py b/threedigrid_builder/interface/dict_out.py index 21078126..a98361f1 100644 --- a/threedigrid_builder/interface/dict_out.py +++ b/threedigrid_builder/interface/dict_out.py @@ -290,7 +290,7 @@ def get_breaches(self, breaches: PotentialBreaches): Returns: breaches dict of 1D ndarrays """ - if len(breaches) == 0: + if breaches is None or len(breaches) == 0: return # sort by id