Skip to main content

A package for light propagation in fiber optics.

Project description

python Documentation Status Citation Unittest PyPi PyPi_download colab

some image

Propagation of mode in an adiabatic 2x1 modally-specific photonic lantern.

This project aims to develop an useful tool design and optimize fiber optic tapered component. SuPyMode is a Python library linked to a c++ core allowing for a flexible interface and fast computing core. The library also aims to offer the end-user a great vizual tools for data analysis. To this day, SuPyMode as been proven a useful tool to develop very-short 2x1 and 3x1 modally specific photonic lantern with very low loss and cross-talk.


Documentation

All the latest available documentation is available here or you can click the following badge:

Documentation Status


Installation

Pip installation

The package have been uploaded as wheel for a few OS (Linux, MacOS) and need Python 3.10. As such, with the adequate configuration one can simply do

>>> pip3 install SuPyMode

Manual installation

To install manually (os independent) you will need to install:

  1. cmake (3.16+)

Then, download and install the SuPyMode package:

>>> git clone --recurse-submodules https://github.com/MartinPdeS/SuPyMode.git
>>> cd SuPyMode && mkdir build && cd build
>>> cmake ..
>>> cmake --build .
>>> cd ..
>>> pip3 install .

Testing

Make sure to install both coverage and pytest using pip3 install coverage pytest. To test locally (with cloning the GitHub repository) you’ll need to install the dependencies and run the coverage command as

>>> git clone --recurse-submodules https://github.com/MartinPdeS/SuPyMode.git
>>> cd SuPyMode
>>> pip3 install PyFiberModes
>>> coverage run --source=SuPyMode --module pytest --verbose tests
>>> coverage report --show-missing

Contact Information

As of 2023 the project is still under development if you want to collaborate it would be a pleasure. I encourage you to contact me.

SuPyMode was written by Martin Poinsinet de Sivry-Houle .

Email:martin.poinsinet-de-sivry@polymtl.ca .

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

supymode-2.0.0.post0-cp312-cp312-win_amd64.whl (3.2 MB view details)

Uploaded CPython 3.12 Windows x86-64

supymode-2.0.0.post0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

supymode-2.0.0.post0-cp312-cp312-macosx_11_0_arm64.whl (2.5 MB view details)

Uploaded CPython 3.12 macOS 11.0+ ARM64

supymode-2.0.0.post0-cp311-cp311-win_amd64.whl (2.2 MB view details)

Uploaded CPython 3.11 Windows x86-64

supymode-2.0.0.post0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

supymode-2.0.0.post0-cp311-cp311-macosx_11_0_arm64.whl (2.0 MB view details)

Uploaded CPython 3.11 macOS 11.0+ ARM64

File details

Details for the file supymode-2.0.0.post0-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for supymode-2.0.0.post0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 5fefee0d963ae552e26e30407078be9028c3c8a957ba1ae4440633adad3f6c66
MD5 195be9fb8e0388133a3b8a6e8a0db071
BLAKE2b-256 d178e47fce828261527d3d99a8f7c11dfeaf714cb185bb5c2d338a8bf1a401b6

See more details on using hashes here.

File details

Details for the file supymode-2.0.0.post0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for supymode-2.0.0.post0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 49f63f7448b3ced51c04e19aed02ecfb678514a7fcaa0ca37b88a4c8297fa3f3
MD5 414478c33ed320e380e15701c4357d1a
BLAKE2b-256 885b6c39750ee86da3490f28c1ece28cc6b4f3da94197a187db842f035ad87e5

See more details on using hashes here.

File details

Details for the file supymode-2.0.0.post0-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for supymode-2.0.0.post0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 608ca9a3195dedbf944335f6f7df764d1377498d1ecd49e860e538b5ee205371
MD5 830a52283d47b850557349243263ed28
BLAKE2b-256 8a06a8923006bedd3bd73dc0a68ef36f91680d486c892497410fa5ff2143464d

See more details on using hashes here.

File details

Details for the file supymode-2.0.0.post0-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for supymode-2.0.0.post0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 128c15613c315c5e26b58c30799c8277d675a17a286c9fd74c33ac972f5ed9d1
MD5 18ddfc189f692fa42abab5937357e72b
BLAKE2b-256 26c07844b355c35de59fb10a182cad99778987e1a235c343db39dca912ff39a1

See more details on using hashes here.

File details

Details for the file supymode-2.0.0.post0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for supymode-2.0.0.post0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6070852618f98abb610b3642418eb162c410fa493020a79bec166649a69b01ab
MD5 2a2392be47dc9cc634e74ba36c4b663a
BLAKE2b-256 67f1bf76c3c412199018b9a053b7a38006257e1993ce99f08ababff868c12d0c

See more details on using hashes here.

File details

Details for the file supymode-2.0.0.post0-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for supymode-2.0.0.post0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 39d6cc8998a7a49e03cfe096c5d464fe800b0a735f31da5e8fff1fd03f785a45
MD5 c98010f54205e228f5e84d4d2d0b5eee
BLAKE2b-256 79634a7d56fb2b579d68b54ba8ef478ee76834970da81a04fc9ce4770d864a5f

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