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.10.post0-cp312-cp312-win_amd64.whl (3.2 MB view details)

Uploaded CPython 3.12 Windows x86-64

supymode-1.2.10.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-1.2.10.post0-cp312-cp312-macosx_11_0_arm64.whl (2.5 MB view details)

Uploaded CPython 3.12 macOS 11.0+ ARM64

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

Uploaded CPython 3.11 Windows x86-64

supymode-1.2.10.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-1.2.10.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-1.2.10.post0-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for supymode-1.2.10.post0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 5ae58d9c295d4cfa5a991ed0ce2b40a3311d77b1a759ab1ca4bc87d69b25769b
MD5 acb0ab3e53819b85997cb6fb3b7f73b0
BLAKE2b-256 e891e37eac95a6ebddaad5a82f17513e2a4f80bb833138f07428445c60f3ac61

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for supymode-1.2.10.post0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 627be149ae761fccd03e2aa0d718433377a9085ed8cf72b0f64cfa0e8b530580
MD5 8ee63a443784b9e07cb699a0d8398d0a
BLAKE2b-256 6a1c222644cbe2866592d6e59f4e7deebd48e67d0b8254b76adfd7d2900c8694

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for supymode-1.2.10.post0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1872d7b0a6d10cdc102a23b7d0ae081b43579a4452d124a06c4ed003028728f1
MD5 3d83c5c14d2c04f381b0f82fff0c8239
BLAKE2b-256 e4deff95c5855cd46a70841e9f7fe92fc8573a64fdba833fdae2a04bc58fb614

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for supymode-1.2.10.post0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 0e55a152652d2235a88d5d1ac1a974ed45bc7f1fadba6593b640a5255fcb1238
MD5 7d91bedaf864a9b412956aa31c287899
BLAKE2b-256 9b191c952dbda1796d4b77ea67c40e405694eafd0687aae05b0d273c8af84b10

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for supymode-1.2.10.post0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 45e2bd58baf3e421e1a978b0cbb6380e69d7629c1097710c670fc3fd84cadce1
MD5 b20589a2e12d26163f4455e4fa67a7d1
BLAKE2b-256 cba90029199e9ed0c8480265089c5c93cf80be157581b2478e78946a61807444

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for supymode-1.2.10.post0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e7032499670d29726ab2dc6d75403f52772bf8d8e8a16f3ed197357c56d68f32
MD5 1e970799472719cb6a44b8708eb6fd46
BLAKE2b-256 6c2f8cfb0fd093391aedf93d41c03b7e8781cb5e87f90e671dc763c969267b45

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