Closed tztsai closed 1 day ago
Further comment: an automatic workflow of translating matlab code to python might be useful if we want to work on the matlab code to add tests, etc. like in PR #15.
This also updates from Python 2 to 3 using the 2to3
tool.
A translator from matlab code to python 2 code is implemented in the
smop/
folder, adopted from the smop repository. A bash scriptm2py.sh
is also added to automate the translation process and save the translated files inoneflux_steps/ustar_cp_py/
. It will also run all the current pytest suit against the translated code.To run the translation and testing, simply run
bash m2py.sh
.