Skip to content

Commit a30d3ef

Browse files
authored
Merge pull request #826 from rgommers/fix-matlab-data-generation
TST: fix CI failures in Matlab test generation files
2 parents bab6df1 + 28678cf commit a30d3ef

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

pywt/tests/data/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
The .npz files with Matlab reference data are generated by the
2+
`generate_matlab*.py` scripts in the `util/` top-level directory
3+
in this repository.

pywt/tests/data/generate_matlab_data.py renamed to util/generate_matlab_data.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
""" This script was used to generate dwt_matlabR2012a_result.npz by storing
22
the outputs from Matlab R2012a. """
33

4+
import os.path
45

56
import numpy as np
67

@@ -91,4 +92,5 @@
9192
finally:
9293
mlab.stop()
9394

94-
np.savez('dwt_matlabR2012a_result.npz', **all_matlab_results)
95+
np.savez(os.path.join('..', 'pywt', 'tests', 'data',
96+
'dwt_matlabR2012a_result.npz'), **all_matlab_results)

pywt/tests/data/generate_matlab_data_cwt.py renamed to util/generate_matlab_data_cwt.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
""" This script was used to generate dwt_matlabR2012a_result.npz by storing
22
the outputs from Matlab R2012a. """
33

4+
import os
45

56
import numpy as np
67

@@ -83,4 +84,5 @@
8384
finally:
8485
mlab.stop()
8586

86-
np.savez('cwt_matlabR2015b_result.npz', **all_matlab_results)
87+
np.savez(os.path.join('..', 'pywt', 'tests', 'data',
88+
'cwt_matlabR2015b_result.npz'), **all_matlab_results)

0 commit comments

Comments
 (0)