GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - geeanlooca/PyNLIN: A Python package and scripts for the evaluation of nonlinear interference noise in single mode fiber transmissions

BranchesTags
Open more actions menu

Latest commit

 

History

314 Commits
314 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
pynlin
pynlin
 
 
scripts
scripts
 
 
tests
tests
 
 
.dockerignore
.dockerignore
 
 
.gitignore
.gitignore
 
 
Dockerfile
Dockerfile
 
 
LICENSE.md
LICENSE.md
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
Singularity
Singularity
 
 
make.bat
make.bat
 
 
pylintrc
pylintrc
 
 
setup.cfg
setup.cfg
 
 
setup.py
setup.py
 
 

Repository files navigation

PyNLIN

A Python package and scripts for the evaluation of nonlinear interference noise in single mode fiber transmissions

Installation

End users

Just clone the repository and pip install it.

git clone https://github.com/geeanlooca/PyNLIN.git
cd PyNLIN
pip install .

Development

Set up the environment

Conda

I usually like to install the core numerical packages from conda directly, and let pip manage the rest of the dependencies.

conda create -n <env> python=3.10 --yes
conda activate <env>
conda install numpy scipy matplotlib h5py

venv

python -m <env>
source <env>/bin/activate # <env>\Scripts\activate.bat under Windows

Install the package

For development purposes, the package should be installed in the editable mode. Changes you make to the package are immediatly reflected on the installed version and consequently on the scripts using the package.

From the root of the repository:

make install

or

pip install -e .[dev]

Singularity images

Packaging the code in a Singularity image allows us to run code using PyNLIN on the Department's SLURM cluster.

There are two main ways in which you can run build and run a Singularity image:

  1. Install Singularity on your local machine, build the image, copy it to the cluster, and submit a job using the image.
  2. Build the image using the remote builder and pull the image directly on the cluster to avoid wasting too much time on uploading the image.

⚠️ **The image pulls the latest commit on the main branch directly from GitHub. Local edits or commits not pushed to GitHub will not be reflected in the resulting image file

Local build

Once you have Singularity installed, just run

sudo singularity build --force singularity.sif singularity.def

The resulting .sif image file can be used to run python scripts locally using

singularity exec singularity.sif python <script>.py

or uploaded to the cluster. An example .slurm file to run a job on the cluster is provided in the slurm/ directory of this repository.

Remote build

Building

About

A Python package and scripts for the evaluation of nonlinear interference noise in single mode fiber transmissions

Resources

Readme
GPL-3.0 license
Activity

Stars

4 stars

Watchers

1 watching

Forks

1 fork
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.