From c32c4f27db9e32e83ebd90bcb5d3820f77667228 Mon Sep 17 00:00:00 2001 From: Javier Vegas-Regidor Date: Thu, 13 Feb 2020 15:53:50 +0100 Subject: [PATCH] Fix moc bug --- earthdiagnostics/ocean/moc.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/earthdiagnostics/ocean/moc.py b/earthdiagnostics/ocean/moc.py index b6f84506..f5931fc8 100644 --- a/earthdiagnostics/ocean/moc.py +++ b/earthdiagnostics/ocean/moc.py @@ -91,6 +91,7 @@ class Moc(Diagnostic): if not basins: Log.error("Basins not recognized") return () + basins.sort() job_list = list() for ( @@ -128,9 +129,9 @@ class Moc(Diagnostic): e3v = mesh.get_k_length(cell_point="V") masks = {} - self.basins.sort() + self.basins for basin in self.basins: - if basin == "Global": + if basin == Basins().Global: global_mask = mesh.get_landsea_mask(cell_point="V") global_mask[..., 0] = 0.0 global_mask[..., -1] = 0.0 -- GitLab