mat2py mean to be drop-in replacement of Matlab by wrapping Numpy/Scipy/... packages.
Project description
mat2py
First Steps
Installation
python3 -m pip install -U mat2py
or install with Poetry
poetry add mat2py
Install the translator mh_python
if needed
python3 -m pip install -U mh-python
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/mat2py/miss_hit/matlab2numpy/tests/mat2np/demo_fft.m"
echo "mh_python --python-alongside --format demo_fft.m"
# run it...
python3 demo_fft.py
You can also try out the online translator by modifiy the example or put your own code.
For Developer
Initialize your code
- Clone
mat2py
:
git clone https://github.com/mat2py/mat2py
- If you don't have
Poetry
installed run:
make poetry-download
source ~/.poetry/env
- Initialize poetry and install
pre-commit
hooks:
make install
make pre-commit-install
- Run the lint to check:
make lint
ToDO
- A serverless web service for run
.m
/.py
code inside browser - Complete set of MATLAB® Basic Functions
- Copy-on-Write beheviour
- A cleaner class hierarchy
- Enable
lint
(mypy, UT, etc.)
📈 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
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
- 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file mat2py-0.0.9.tar.gz
.
File metadata
- Download URL: mat2py-0.0.9.tar.gz
- Upload date:
- Size: 32.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 59b1c9f0943e41145e8b277b14ef053d3ea9e2cc1988a65a870b4024a7dd4c5e |
|
MD5 | 82890ebd8f9c3b86c4a93b558fe6d681 |
|
BLAKE2b-256 | a734160817c03ce9870043f4f6b40eb00e9854f40c4232e4d616de5f3c32e287 |
File details
Details for the file mat2py-0.0.9-py3-none-any.whl
.
File metadata
- Download URL: mat2py-0.0.9-py3-none-any.whl
- Upload date:
- Size: 39.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 51cbe71f7f0cce509a79007398f68e7dd96368a86bf6f80b7b137eae09bcb181 |
|
MD5 | e8a21d00758a1fa84465f9fbed0c74d3 |
|
BLAKE2b-256 | 0234845e5493496f8abc2c86107fb66bc5586f3cb225759f2813a65977e3eb51 |