Comments (11)
Some code like this is useless, and should remove from document:
try:
import LightPipes
except ImportError:
print ("LightPipes not present")
exit()
import sys
print(sys.path)
from lightpipes.
Ok, shall do so.
from lightpipes.
And how about put this into LightPipes?
m=1
nm=1e-9*m
um=1e-6*m
mm=1e-3*m
cm=1e-2*m
then we can use from LightPipes import m,nm,um,mm,cm
to replace the code above
from lightpipes.
Is that not too complicated? We can try.
We have to put m=1.0 I found in one of my examples a round-off error in for example z=11*m. We expect a double in stead of an integer.
from lightpipes.
Not complicated I think, this can reduce many duplication code.
I'm in favor of use double.
from lightpipes.
Ok, can you do it?
from lightpipes.
No problem.
from lightpipes.
Hi,
I successfully build windows wheels with miniconda after modifications of:
setup.py
(I had to comment out the numpy requirement to prevent error)
windows\tasks.py
windows\__init__.py
See: wheels_log3.txt for wheel creation process
Changed __init__.py such that LP=LightPipes.Init() can be omitted and all commands can be written like 'F=Forvard(z,F)' in stead of 'F=LP.Forvard(z,F)' looks nicer! (Old notation still works, see __init__.py and un-comment the old code in Young.py to check that)
Modified all examples.
Fred
from lightpipes.
The code like this in __init__.py
:
def Axicon(phi, n1, x_shift, y_shift, F):
return LP.Axicon(phi, n1, x_shift, y_shift, F)
can be change to:
Axicon = LP.Axicon
so that help(Axicon)
works.
from lightpipes.
Don't know why build for py27 64bit
failed, I will try it in my windows tomorrow.
And did you build for py34 successfully?
from lightpipes.
No compiler installed on my laptop.
from lightpipes.
Related Issues (20)
- Add Interpol option in Fresnel and Forvard HOT 1
- Warning when paraxiality is violated HOT 2
- Shift with direct integration Forward
- Diffraction From Thin Wire HOT 4
- Step by Step Propagation With a Short Focal Length Lens HOT 3
- LightPipes on an iPad
- LPtest() fails on some systems while installation is correct HOT 1
- Intensity plot gets cut up when attempting to propagate finite airy beam HOT 9
- Cite lightpipes in a paper HOT 2
- lens Following Field Produced by Forward Function
- Airy Beam HOT 6
- LG doughnut mode HOT 4
- Microwave frequencies HOT 3
- A doc example of D4sigma seems to call Centroid instead of D4sigma HOT 1
- LensFarfield in lenses.py but not in __init__.py and documentation HOT 2
- Michelson interferometer with the Zernike aberration HOT 4
- Bessel Beam Simulation from an annulus of light HOT 4
- interference pattern with a focused x-ray beam (spherical coordinates propagation & Steps) HOT 1
- Calculate the power( ratio) in the bucket and times the diffraction limit
- Strehl ratio formula
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lightpipes.