Skip to main content

mat2py mean to be drop-in replacement of Matlab by wrapping Numpy/Scipy/... packages.

Project description

mat2py

Build status Python Version Dependencies Status

Code style: black Security: bandit Pre-commit Semantic Versions License Coverage Report

mat2py mean to be drop-in replacement of Matlab by wrapping Numpy/Scipy/... packages.

First Steps

Installation

pip install -U mat2py

or install with Poetry

poetry add mat2py

Install fork of miss_hit for mh_python if needed

git clone https://github.com/chaoqing/miss_hit
cd miss_hit
python3 setup_gpl.py install --user
python3 setup_agpl.py install --user
cd -
rm -rf miss_hit

Try the example demo_fft

# download the one already converted and formatted
wget https://raw.githubusercontent.com/mat2py/mat2py/main/tests/test_example/demo_fft.py

# or convert it yourself
echo "wget https://raw.githubusercontent.com/chaoqing/miss_hit/matlab2numpy/tests/mat2np/demo_fft.m"
echo "mh_python --python-alongside --format demo_fft.m"

# run it...
python3 demo_fft.py

For Developer

Initialize your code

  1. Clone mat2py:
git clone https://github.com/mat2py/mat2py 
  1. If you don't have Poetry installed run:
make poetry-download
source ~/.poetry/env
  1. Initialize poetry and install pre-commit hooks:
make install
make pre-commit-install
  1. Run the lint to check:
make lint

📈 Releases

You can see the list of available releases on the GitHub Releases page.

We follow Semantic Versions specification.

We use Release Drafter. As pull requests are merged, a draft release is kept up-to-date listing the changes, ready to publish when you’re ready. With the categories option, you can categorize pull requests in release notes using labels.

🛡 License

License

This project is licensed under the terms of the MIT license. See LICENSE for more details.

📃 Citation

@misc{mat2py,
  author = {mat2py},
  title = {mat2py mean to be drop-in replacement of Matlab by wrapping Numpy/Scipy/... packages.},
  year = {2021},
  publisher = {GitHub},
  journal = {GitHub repository},
  howpublished = {\url{https://github.com/mat2py/mat2py}}
}

Credits 🚀 Your next Python package needs a bleeding-edge project structure.

  • This project was initially generated with python-package-template
  • The Matlab to Python translator mh_python is developed under fork of MISS HIT, a fantastic Matlab static analysis tool.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mat2py-0.0.6.tar.gz (11.7 kB view details)

Uploaded Source

Built Distribution

mat2py-0.0.6-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

Details for the file mat2py-0.0.6.tar.gz.

File metadata

  • Download URL: mat2py-0.0.6.tar.gz
  • Upload date:
  • Size: 11.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10

File hashes

Hashes for mat2py-0.0.6.tar.gz
Algorithm Hash digest
SHA256 2d8e093a1f9b771526990193dffd84ab8ee5b96a696aba12df14876bc20cf41f
MD5 635528b6e4d4928a39add52b37f44d77
BLAKE2b-256 4fa76c0baff802f04010d49f039da1495cfe3994929fca115074bfa9d4828dd3

See more details on using hashes here.

File details

Details for the file mat2py-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: mat2py-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 9.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10

File hashes

Hashes for mat2py-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 9c14b4a73420f519dd378e4d18e687508bad3f30ae93b0981226db922bc7fc64
MD5 38c8fc1f30e1664446e1f962ed9bda6d
BLAKE2b-256 b0b28b43358fc3c09507f10971824b92a15daf992af324376658143c6e4e2310

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page