Skip to main content

LaserSafety

Documentation Status Github - License Github - Release PyPI - Version Code style: black Linting with pylint Checked with mypy Python Version Coverage coverage Docstr coverage

The goal of this project is to perform the computations related to the EN207 and EN208 standards to choose eyewear. For instance, if you have a 3 W 1550 nm laser, producing 50 picosecond pulses at a rate of 80 MHz. The accessible beam diameter is 2 mm. This library makes it as simple as

lasersafety -p 3 -r 80e6 -t 50e-12 -w 1550e-9 -d 2e-3 en207
This code is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

In particular, you should ALWAYS check the results provided by this code before using them for
actual laser safety.

----------------------------------------
Laser information

Continuous: False
Wavelength: 1.55 μm
Repetition rate: 80.0 MHz
Average power: 3.0 W
Peak power: 750.0 W
Pulse duration: 50.0 ps
Pulse energy: 37.5 nJ
Beam diameter: 2.0 mm
Mode: M
Cross section area: 3.141592653589793e-06 m^2
Power density: 954929.6585513721 W/m^2
Peak power density: 238732414.63784304 W/m^2
Energy density: 0.011936620731892151 J/m^2
Corrected energy density: 2.007492316738256 J/m^2
Number of pulses in 10s: 800000000.0

----------------------------------------
EN207 analysis

1550.0 nm D LB3
1550.0 nm M LB1

Meaning that we require D LB3 + M LB1 at 1550 nm.

Disclaimer

This work results from my own understanding of these standards. While I believe that I have understood the principles of the computation, I may be wrong and errors may have been introduced in transcripting this understanding into code.

All the results from this package should be checked by trained and competent personal, and used at your own risk. I decline any responsibility and provide no warranty on my program.

Documentation

The documentation of this package is available at https://lasersafety.readthedocs.io.

Metadata

Release files for lasersafety 0.10.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lasersafety 0.10.1
File Size Uploaded Provenance
lasersafety-0.10.1.tar.gz 11.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for lasersafety 0.10.1
File Interpreter ABI Platform
lasersafety-0.10.1-py3-none-any.whl Python 3 none any Details

Total release size: 26.2 kB

Release files / lasersafety-0.10.1.tar.gz

Download URL lasersafety-0.10.1.tar.gz
Size 11.6 kB
Tags Source
SHA-256 checksum
How to use checksums
51d8835df6460719091b12921dc45e7fbed6f49c669dfb7471880fb52fad6d03
BLAKE2b-256 checksum
How to use checksums
e5dec714fdefc646c87ec7f4dea246e97ce42654a674bba870738418a1b4a549
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.2 CPython/3.13.7 Linux/6.16.7-arch1-1

Release files / lasersafety-0.10.1-py3-none-any.whl

Download URL lasersafety-0.10.1-py3-none-any.whl
Size 14.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0334da4119d817fbb4ec80da2fe4d5cf37f038c871f20ce6578d59f9473b7ff3
BLAKE2b-256 checksum
How to use checksums
ec97217849999b4ddbb0fe9ec56cfc7f1555a57f440757e0c852288148e5362c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.2 CPython/3.13.7 Linux/6.16.7-arch1-1

Security for lasersafety 0.10.1

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page