From ff28b85f940efc6e26558344e2a471a0383bba43 Mon Sep 17 00:00:00 2001 From: Sudipta Basak Date: Tue, 19 Jul 2016 11:44:55 +1000 Subject: [PATCH] fixed linrate and timeseries tests due to splitting of mpi postprocessing --- pyrate/tests/test_linrate.py | 5 +++++ pyrate/tests/test_timeseries.py | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/pyrate/tests/test_linrate.py b/pyrate/tests/test_linrate.py index aabd9da09..743032a09 100644 --- a/pyrate/tests/test_linrate.py +++ b/pyrate/tests/test_linrate.py @@ -250,6 +250,11 @@ def process(cls): cmd = str.split() subprocess.check_call(cmd) + str = 'mpirun -np 4 python pyrate/nci/postprocessing.py ' + \ + cls.conf_file + cmd = str.split() + subprocess.check_call(cmd) + rate_file = os.path.join(cls.params[cf.OUT_DIR], 'linrate.npy') cls.rate_mpi = np.load(rate_file) error_file = os.path.join(cls.params[cf.OUT_DIR], 'linerror.npy') diff --git a/pyrate/tests/test_timeseries.py b/pyrate/tests/test_timeseries.py index 9c810bef8..9c0cc1d17 100644 --- a/pyrate/tests/test_timeseries.py +++ b/pyrate/tests/test_timeseries.py @@ -403,6 +403,11 @@ def process(cls): cmd = str.split() subprocess.check_call(cmd) + str = 'mpirun -np 4 python pyrate/nci/postprocessing.py ' + \ + cls.conf_file + cmd = str.split() + subprocess.check_call(cmd) + # sydney test data known to have a span/nvelpar of 12 cls.tsincr_mpi = np.empty(shape=(cls.ifgs[0].shape + (12,)), dtype=np.float32)