Cambridge-ICCS / ONEFlux

Open Network-Enabled Flux processing pipeline
Other
0 stars 0 forks source link

[WIP] Implement Matlab to Python Translator #17

Closed tztsai closed 1 day ago

tztsai commented 3 months ago

A translator from matlab code to python 2 code is implemented in the smop/ folder, adopted from the smop repository. A bash script m2py.sh is also added to automate the translation process and save the translated files in oneflux_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.

tztsai commented 3 months 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.

dorchard commented 4 weeks ago

This also updates from Python 2 to 3 using the 2to3 tool.