From 07bbfcab3d39117953c7d91303fe42b11c520083 Mon Sep 17 00:00:00 2001 From: Jan Polcher <jan.polcher@lmd.jussieu.fr> Date: Thu, 20 Jun 2019 10:26:13 +0200 Subject: [PATCH] Small coreections to the new functions --- Partition.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Partition.py b/Partition.py index 6784327..ec0333d 100644 --- a/Partition.py +++ b/Partition.py @@ -442,9 +442,11 @@ class partition : elif order == 'F' : x[self.landcorelist,:] = 0.0 else : - ERROR("Unforessen order for variable to zero") + ERROR("Unforessen order for variable to be set to zero over core region.") sys.exit() - + else : + ERROR("Unforessen rank for variable to summedibe set to zero over the core region.") + sys.exit() return # # Function to sum over the core regions @@ -458,6 +460,9 @@ class partition : elif order == 'F' : y = np.nansum(x[self.landcorelist,:], axis=0) else : - ERROR("Unforessen order for variable to zero") + ERROR("Unforessen order for variable to summed over the core region.") sys.exit() + else : + ERROR("Unforessen rank for variable to summed over the core region.") + sys.exit() return y -- GitLab