FiberFusing
===========
|logo|
.. list-table::
:widths: 10 25 25 25
:header-rows: 0
* - Meta
- |python|
- |docs|
- |colab|
* - Testing
- |ci/cd|
- |coverage|
-
* - PyPi
- |PyPi|
- |PyPi_download|
-
* - Anaconda
- |anaconda|
- |anaconda_download|
-
FiberFusing is a Python package designed for simulating the fiber fusing process. With this tool, users can define an initial fiber configuration and simulate the fusion process as a function of the fusion degree parameter.
As follows, an example of 3x3 fused fiber.
.. code-block:: python
from FiberFusing import Geometry, DomainAlignment, BackGround
from FiberFusing.fiber import FiberLoader
from FiberFusing.profile import Profile, StructureType
air_background = BackGround(refractive_index=1.0)
profile = Profile()
profile.add_structure(
structure_type=StructureType.CIRCULAR,
number_of_fibers=3,
fusion_degree=0.4,
fiber_radius=62.5e-6
)
profile.refractive_index = 1.4444
fiber_loader = FiberLoader()
fibers = [
fiber_loader.load_fiber('SMF28', clad_refractive_index=profile.refractive_index, position=core_position)
for core_position in profile.cores
]
# Set up the geometry with the defined background, profile structure, and resolution
geometry = Geometry(
x_bounds=DomainAlignment.CENTERING,
y_bounds=DomainAlignment.CENTERING,
resolution=350
)
# Add the fibers to the geometry
geometry.add_structure(air_background, profile, *fibers)
geometry.initialize()
# Plot the resulting geometry
geometry.plot()
|example_3x3|
----
Documentation
**************
For the most up-to-date documentation, visit the official `FiberFusing Docs <https://martinpdes.github.io/FiberFusing/latest/>`_ or click the badge below:
|docs|
----
Installation
************
Getting started with FiberFusing is easy. Simply install via `pip`:
.. code-block:: bash
pip install FiberFusing
|PyPi|
----
Testing
*******
To run tests locally after cloning the GitHub repository, you’ll need to install the dependencies and run the following commands:
.. code-block:: bash
git clone https://github.com/MartinPdeS/FiberFusing.git
cd FiberFusing
pip install FiberFusing[testing]
pytest
For more detailed testing instructions, consult the documentation.
----
Coding examples
***************
Explore a wide range of examples demonstrating the usage of FiberFusing in the `Examples section <https://martinpdes.github.io/FiberFusing/gallery/index.html>`_ of the documentation.
----
Contributing & Contact
***********************
FiberFusing is an open project and collaboration is encouraged! If you're interested in contributing or have any questions, feel free to reach out.
**Author:** `Martin Poinsinet de Sivry-Houle <https://github.com/MartinPdeS>`_
**Email:** `martin.poinsinet-de-sivry@polymtl.ca <mailto:martin.poinsinet-de-sivry@polymtl.ca?subject=FiberFusing>`_
We welcome feedback and contributions to improve FiberFusing and expand its capabilities.
----
.. |python| image:: https://img.shields.io/pypi/pyversions/fiberfusing.svg
:target: https://www.python.org/
:alt: Python version
.. |PyPi| image:: https://badge.fury.io/py/FiberFusing.svg
:target: https://pypi.org/project/FiberFusing/
:alt: PyPi
.. |PyPi_download| image:: https://img.shields.io/pypi/dm/fiberfusing.svg
:target: https://pypistats.org/packages/fiberfusing
:alt: PyPi download statistics
.. |logo| image:: https://github.com/MartinPdeS/FiberFusing/raw/master/docs/images/logo.png
:alt: FiberFusing's logo
.. |docs| image:: https://github.com/martinpdes/fiberfusing/actions/workflows/deploy_documentation.yml/badge.svg
:target: https://martinpdes.github.io/FiberFusing/
:alt: Documentation Status
.. |coverage| image:: https://raw.githubusercontent.com/MartinPdeS/FiberFusing/python-coverage-comment-action-data/badge.svg
:target: https://htmlpreview.github.io/?https://github.com/MartinPdeS/FiberFusing/blob/python-coverage-comment-action-data/htmlcov/index.html
:alt: Unittest coverage
.. |ci/cd| image:: https://github.com/martinpdes/fiberfusing/actions/workflows/deploy_coverage.yml/badge.svg
:target: https://martinpdes.github.io/FiberFusing/actions
:alt: Unittest Status
.. |anaconda_download| image:: https://anaconda.org/martinpdes/fiberfusing/badges/downloads.svg
:alt: Anaconda downloads
:target: https://anaconda.org/martinpdes/fiberfusing
.. |anaconda| image:: https://anaconda.org/martinpdes/fiberfusing/badges/version.svg
:alt: Anaconda version
:target: https://anaconda.org/martinpdes/fiberfusing
.. |example_3x3| image:: https://github.com/MartinPdeS/FiberFusing/raw/master/docs/images/example_3x3.png
:alt: Example for 3 fiber structure
.. |colab| image:: https://colab.research.google.com/assets/colab-badge.svg
:target: https://colab.research.google.com/github/MartinPdeS/FiberFusing/blob/master/notebook.ipynb
===========
|logo|
.. list-table::
:widths: 10 25 25 25
:header-rows: 0
* - Meta
- |python|
- |docs|
- |colab|
* - Testing
- |ci/cd|
- |coverage|
-
* - PyPi
- |PyPi|
- |PyPi_download|
-
* - Anaconda
- |anaconda|
- |anaconda_download|
-
FiberFusing is a Python package designed for simulating the fiber fusing process. With this tool, users can define an initial fiber configuration and simulate the fusion process as a function of the fusion degree parameter.
As follows, an example of 3x3 fused fiber.
.. code-block:: python
from FiberFusing import Geometry, DomainAlignment, BackGround
from FiberFusing.fiber import FiberLoader
from FiberFusing.profile import Profile, StructureType
air_background = BackGround(refractive_index=1.0)
profile = Profile()
profile.add_structure(
structure_type=StructureType.CIRCULAR,
number_of_fibers=3,
fusion_degree=0.4,
fiber_radius=62.5e-6
)
profile.refractive_index = 1.4444
fiber_loader = FiberLoader()
fibers = [
fiber_loader.load_fiber('SMF28', clad_refractive_index=profile.refractive_index, position=core_position)
for core_position in profile.cores
]
# Set up the geometry with the defined background, profile structure, and resolution
geometry = Geometry(
x_bounds=DomainAlignment.CENTERING,
y_bounds=DomainAlignment.CENTERING,
resolution=350
)
# Add the fibers to the geometry
geometry.add_structure(air_background, profile, *fibers)
geometry.initialize()
# Plot the resulting geometry
geometry.plot()
|example_3x3|
----
Documentation
**************
For the most up-to-date documentation, visit the official `FiberFusing Docs <https://martinpdes.github.io/FiberFusing/latest/>`_ or click the badge below:
|docs|
----
Installation
************
Getting started with FiberFusing is easy. Simply install via `pip`:
.. code-block:: bash
pip install FiberFusing
|PyPi|
----
Testing
*******
To run tests locally after cloning the GitHub repository, you’ll need to install the dependencies and run the following commands:
.. code-block:: bash
git clone https://github.com/MartinPdeS/FiberFusing.git
cd FiberFusing
pip install FiberFusing[testing]
pytest
For more detailed testing instructions, consult the documentation.
----
Coding examples
***************
Explore a wide range of examples demonstrating the usage of FiberFusing in the `Examples section <https://martinpdes.github.io/FiberFusing/gallery/index.html>`_ of the documentation.
----
Contributing & Contact
***********************
FiberFusing is an open project and collaboration is encouraged! If you're interested in contributing or have any questions, feel free to reach out.
**Author:** `Martin Poinsinet de Sivry-Houle <https://github.com/MartinPdeS>`_
**Email:** `martin.poinsinet-de-sivry@polymtl.ca <mailto:martin.poinsinet-de-sivry@polymtl.ca?subject=FiberFusing>`_
We welcome feedback and contributions to improve FiberFusing and expand its capabilities.
----
.. |python| image:: https://img.shields.io/pypi/pyversions/fiberfusing.svg
:target: https://www.python.org/
:alt: Python version
.. |PyPi| image:: https://badge.fury.io/py/FiberFusing.svg
:target: https://pypi.org/project/FiberFusing/
:alt: PyPi
.. |PyPi_download| image:: https://img.shields.io/pypi/dm/fiberfusing.svg
:target: https://pypistats.org/packages/fiberfusing
:alt: PyPi download statistics
.. |logo| image:: https://github.com/MartinPdeS/FiberFusing/raw/master/docs/images/logo.png
:alt: FiberFusing's logo
.. |docs| image:: https://github.com/martinpdes/fiberfusing/actions/workflows/deploy_documentation.yml/badge.svg
:target: https://martinpdes.github.io/FiberFusing/
:alt: Documentation Status
.. |coverage| image:: https://raw.githubusercontent.com/MartinPdeS/FiberFusing/python-coverage-comment-action-data/badge.svg
:target: https://htmlpreview.github.io/?https://github.com/MartinPdeS/FiberFusing/blob/python-coverage-comment-action-data/htmlcov/index.html
:alt: Unittest coverage
.. |ci/cd| image:: https://github.com/martinpdes/fiberfusing/actions/workflows/deploy_coverage.yml/badge.svg
:target: https://martinpdes.github.io/FiberFusing/actions
:alt: Unittest Status
.. |anaconda_download| image:: https://anaconda.org/martinpdes/fiberfusing/badges/downloads.svg
:alt: Anaconda downloads
:target: https://anaconda.org/martinpdes/fiberfusing
.. |anaconda| image:: https://anaconda.org/martinpdes/fiberfusing/badges/version.svg
:alt: Anaconda version
:target: https://anaconda.org/martinpdes/fiberfusing
.. |example_3x3| image:: https://github.com/MartinPdeS/FiberFusing/raw/master/docs/images/example_3x3.png
:alt: Example for 3 fiber structure
.. |colab| image:: https://colab.research.google.com/assets/colab-badge.svg
:target: https://colab.research.google.com/github/MartinPdeS/FiberFusing/blob/master/notebook.ipynb
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
fiberfusing-1.9.5.tar.gz
(451.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fiberfusing-1.9.5.tar.gz.
File metadata
- Download URL: fiberfusing-1.9.5.tar.gz
- Upload date:
- Size: 451.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.1.0 CPython/3.9.23
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ca99e27e25ed9d2aea70fd53519a69718880f741f5c74d84f6fe4ad9c5199102
|
|
| MD5 |
083825f4751527a4f1f846ecfec2c44e
|
|
| BLAKE2b-256 |
be35b2dec03468e5bf11a29450e372ede87a8cc85034609cff0c56324246452f
|
File details
Details for the file fiberfusing-1.9.5-py3-none-any.whl.
File metadata
- Download URL: fiberfusing-1.9.5-py3-none-any.whl
- Upload date:
- Size: 61.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.1.0 CPython/3.9.23
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bf7b16d8fd0f93db81b633eddbf7cdc9d3c3c63f03e24d6cbe3c2d325ed28723
|
|
| MD5 |
462465cef2e4a1f08f3374205acff386
|
|
| BLAKE2b-256 |
91ed5cd1e4b62e9c3bd639205194be062e6c30e2aac56c35f16ddcb67dd0cd5c
|