Skip to main content

A package for light propagation in fiber optics.

Project description

python Documentation Status Citation Unittest coverage 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.1.post0-cp312-cp312-win_amd64.whl (3.2 MB view details)

Uploaded CPython 3.12 Windows x86-64

supymode-2.0.1.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.1.post0-cp312-cp312-macosx_14_0_arm64.whl (2.5 MB view details)

Uploaded CPython 3.12 macOS 14.0+ ARM64

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

Uploaded CPython 3.11 Windows x86-64

supymode-2.0.1.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.1.post0-cp311-cp311-macosx_14_0_arm64.whl (2.0 MB view details)

Uploaded CPython 3.11 macOS 14.0+ ARM64

File details

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

File metadata

File hashes

Hashes for supymode-2.0.1.post0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 19d49d691a4586b8480f999c4f49e765beee2f7a36706f0333825d6f21a6a300
MD5 81da069bb3d890c7c0041733666eba06
BLAKE2b-256 7510416d7e52e2c7dbfde36775877c0e5e64a29f7f3a802928e362b60479d945

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for supymode-2.0.1.post0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 458dceaf9b77fbd603c22937e49b73af2043bb1e7e58a3f6b0e96831099b8630
MD5 dab0eb80d595dd254c9cab3120b04b55
BLAKE2b-256 4b69435125c7bf0ef9bacf1c1d59ddd7e27f7198a75a8264b312ac7caaaeb303

See more details on using hashes here.

File details

Details for the file supymode-2.0.1.post0-cp312-cp312-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for supymode-2.0.1.post0-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 7fef8de13fbbfa37bcc75c71320a7de76a430db9c2e302e97ebe4ea46aa8cb00
MD5 8adbb57f4e8d9f0eda049c6f0acfdeb8
BLAKE2b-256 b3062afea4cc9fae568e7b3d0dc3005459f0232fd7ff7f94488badfa59b3f955

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for supymode-2.0.1.post0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 4fa709e23bad553e001cd92f98efd98fb0317e81f5121719d6294afcd34d4dd8
MD5 3fd22d4b8cd897da33c954dc3d1c071a
BLAKE2b-256 93502342ae411966630afe9ef6a19837a6db454b4e1db6c9edb54bd94a1957d0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for supymode-2.0.1.post0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b8875aea32c7e250eab3348ebab262f181f00f743da612f8976f44e14a06784c
MD5 426c1a87e057517d5cd968fa9c5ccbcc
BLAKE2b-256 630cd7537f9d93fbd7df8a31c207a29c0d52e54de1d85f296041012fbadf195c

See more details on using hashes here.

File details

Details for the file supymode-2.0.1.post0-cp311-cp311-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for supymode-2.0.1.post0-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 581eda68d09b6bb753ec6884fa1aee2f3205597d21137b04bf036908e7aa26b8
MD5 4b9f8bcb4b45df6011233370f4b0a22a
BLAKE2b-256 e7ee2f043f04ce6b0426cabe7811989078054718fda4afb52b75bbb422b56427

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