Pyofss allows construction of an optical fibre system from separate modules. A typical system consists of a Gaussian pulse generator module and an optical fibre module. The field generated is propagated through the fibre by numerical integration of an appropriate Schrödinger-type equation.
Simulated effects include that of dispersion (second, third, and higher order), attenuation, self-phase modulation, self-steepening, and Raman scattering. Resulting field profiles (including multiple traces for the fibre module) can be visualised using a range of plot types. These include standard x-y plots, top-down “map” plots, three-dimensional “waterfall” plots, and animation videos.
Installation
Pyofss is available on PyPI and can be retrieved using the pip program:
sudo aptitude install python-pip pip install pyofss
Then import pyofss within scripts or in an interactive session:
>>> import pyofss
Dependencies
Pyofss depends on Numpy, Scipy, and Matplotlib. They can be installed on Linux distributions using aptitude:
sudo aptitude install python-numpy python-scipy python-matplotlib
Development
It is recommended to install pyofss into a virtual environment, which can be initialised using:
sudo aptitude install python-virtualenv sudo pip install virtualenvwrapper mkvirtualenv pyofss workon pyofss
Pyofss dependencies can then be satisfied using:
pip install numpy pip install scipy sudo aptitude build-dep python-matplotlib pip install matplotlib
Install the latest development version of pyofss from GitHub:
pip install git+https://github.com/daibo/pyofss.git
Tests
Tests can be run within the pyofss package:
python setup.py test
Metadata
Release files for pyofss 0.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyofss-0.9.tar.gz | 69.1 kB | Without provenance | Details for pyofss-0.9.tar.gz |
Release files / pyofss-0.9.tar.gz
| Download URL | pyofss-0.9.tar.gz |
|---|---|
| Size | 69.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ee1b2725d6230a6809f895ab9bbcf159f86e1169644d677ff874aeae30160664
|
|
BLAKE2b-256 checksum How to use checksums |
5da55186b84a0064a722277dbd9fa1f3745107ac946787cc48418b41377b0525
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for pyofss 0.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.