python-lenses
OptSys
Our great sponsors
python-lenses | OptSys | |
---|---|---|
2 | 1 | |
296 | 16 | |
- | - | |
5.1 | 2.6 | |
6 months ago | over 2 years ago | |
Python | Python | |
GNU General Public License v3.0 only | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
python-lenses
-
Is there an alternative to using a bunch of nested If else statements?
python-lenses
-
Is there a quicker way to check if a attribute within an attribute exists?
Now, the thing you're doing can be done with something called lenses. But they're rather hard to learn, and really not something I would recommend for a beginner. But there's packages like this which enables you to compose a function that will succinctly parse the thing you're interested in and give you good error messages.
OptSys
-
Confused on how collimator works
Hope that helps! If you want to play with lenses, I recommend a tiny simulator I wrote: https://github.com/vishwa91/optsys -- you can play with several combinations of lenses, sensors, and light sources. Hope you have fun!
What are some alternatives?
glom - ☄️ Python's nested data operator (and CLI), for all your declarative restructuring needs. Got data? Glom it! ☄️
diffractsim - ✨ A flexible diffraction simulator for exploring and visualizing physical optics.
pfun - Functional, composable, asynchronous, type-safe Python.
Python-Raytracer - A basic Ray Tracer that exploits numpy arrays and functions to work fast.
fdtd - A 3D electromagnetic FDTD simulator written in Python with optional GPU support
static-frame - Immutable and statically-typeable DataFrames with runtime type and data validation
prysm - physical optics: integrated modeling, phase retrieval, segmented systems, polynomials and fitting, sequential raytracing...
optics-ts - Type-safe, ergonomic, polymorphic optics for TypeScript
partial.lenses - Partial lenses is a comprehensive, high-performance optics library for JavaScript