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

Uploaded CPython 3.10 Windows x86-64

supymode-1.2.14-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (641.1 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

supymode-1.2.14-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-1.2.14-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for supymode-1.2.14-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 43624f61254ccf87f614a8c5c21d4a3a7c5abc5eef10c1b71b39888d2917f4ec
MD5 25ff11cf3df6ee2037e3889c1ab4dc55
BLAKE2b-256 ecf91e86f8c1391585de5b4e6da2af358cc0d6674a673d990976de660adfa09e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for supymode-1.2.14-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 edc443c7227341d61e05b0f7d5b16147f91b7452193c575c432cd8ad3118bec5
MD5 3660db8c1ed20f59a680d0f014000a13
BLAKE2b-256 ed0397d7c81189af4d364d0381c6aa1e5e250cdaf515ccad5b5f2cc0a887c52e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for supymode-1.2.14-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 559529cc7fc79a0125a1fe8e0d86c1167f3e45506261936d7cfda5d2a32c6b16
MD5 e6cdf45a871dd273c5179ee16eb884b7
BLAKE2b-256 fd2ef699a1180e978668217a4b4a2e952d8760a4261ce46b7be4dc1ebae1287c

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