Skip to content

Commit

Permalink
fixed linrate and timeseries tests due to splitting of mpi postproces…
Browse files Browse the repository at this point in the history
…sing
  • Loading branch information
basaks committed Jul 19, 2016
1 parent 26560d4 commit ff28b85
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pyrate/tests/test_linrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
5 changes: 5 additions & 0 deletions pyrate/tests/test_timeseries.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ff28b85

Please sign in to comment.