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-cp310-cp310-win_amd64.whl (1.1 MB view details)

Uploaded CPython 3.10 Windows x86-64

supymode-2.0.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (643.8 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

supymode-2.0.0-cp310-cp310-macosx_11_0_arm64.whl (1.5 MB view details)

Uploaded CPython 3.10 macOS 11.0+ ARM64

File details

Details for the file supymode-2.0.0-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for supymode-2.0.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 0a00003d9797b03ff54962db459d0ca9e2e19996b9454361e50b599edad7767f
MD5 b2db8b90619bf11aabb2f91a06499f54
BLAKE2b-256 8a82df512b943439b3d6dcbb0f10da0d85cd0544ee06ad52b75249fa91994a13

See more details on using hashes here.

File details

Details for the file supymode-2.0.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for supymode-2.0.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1584d4a9bef060fec1db2310c479259451806ae9b022701ff64c74e86af5232d
MD5 d9491da4271353b73ccf8e8f4accffac
BLAKE2b-256 6144c22f7aa465dafde077e738f8a76813df0ca2b44b9196e9fb96a3ffe786fe

See more details on using hashes here.

File details

Details for the file supymode-2.0.0-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for supymode-2.0.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0cd24338fc547bb8cbf8fb956f30a93dce20703a2566d77685ad15787259d6f1
MD5 3a17db1bca590d9b92d7e5b9c2fd3cbe
BLAKE2b-256 658d4088628574b098e0069946ab4a41e2a1891c516a75b6799d626086debd93

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