-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Linux install #1
Comments
I made a complete new version on a new github repository: https://opticspy.github.io/lightpipes/ |
Thank you for the very prompt reply!!
I tried this method but it appears that the problem is either my python
install or some other sort of strange compatibility issue. After a few
tries I ran in verbose "sudo pip install LightPipes -v" but I get the
following errors multiple times....
- Skipping link
https://pypi.python.org/packages/f2/77/7244826ce4d49efbfb25e6c89ce83033cab41faf9065c719f6e01675ad22/LightPipes-1.1.3-cp35-cp35m-macosx_10_7_x86_64.whl#md5=2c0510e614022c420b8d4ff732f79ee3
(from https://pypi.python.org/simple/lightpipes/); it is not compatible
with this Python
My python version is 2.7.13.... I will have to delve into this further I
must be missing some sort of dependency that is not immediately clear.
David
…On 10 July 2017 at 21:13, FredvanGoor ***@***.***> wrote:
I made a complete new version on a new github repository:
https://opticspy.github.io/lightpipes/
Please try to uninstall your LightPipes version (1.0.0) (sudo pip
uninstall LightPipes) and re-install it by typing: sudo pip install
LightPipes. The latest version is 1.1.3.
I have tested it on several platforms, but remember it is still under
construction...
Let me know if it works now.
I will delete the old repository.
Look at the new documentation on: https://opticspy.github.io/
lightpipes/index.html
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AcqbZCEK17z2lbut1QnXHIXt7dHiqodrks5sMnfpgaJpZM4OTQy2>
.
--
David O'Dwyer PhD
Optical Physicist / Design Engineer
ASML
Veldhoven
Netherlands
|
From the link above I see that the macintosh version is installed for Python 3.5! That will not work on a linux system as far as I know. Maybe it is your linux OpenSuse doing this? I tested all linux versions on linux Ubuntu. Fred. |
I noticed that too once I sent it. Working on it no idea how this happened
but this is a very old installation which I have played with too much :)
Is there a way to force the version that pip downloads ?
When I get it to work I will give you an update.
Thanks,
David
…On 10 July 2017 at 21:51, FredvanGoor ***@***.***> wrote:
From the link above I see that the macintosh version is installed for
Python 3.5! That will not work on a linux system as far as I know. Maybe it
is your linux OpenSuse doing this? I tested all linux versions on linux
Ubuntu.
Fred.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AcqbZOpKW1mHqDKJfAbzdhLQlKS5mJ72ks5sMoDCgaJpZM4OTQy2>
.
--
David O'Dwyer PhD
Optical Physicist / Design Engineer
ASML
Veldhoven
Netherlands
|
Yes, simply download the wheel for your python 2.7 and machine (LightPipes-1.1.3-cp27-cp27m-manylinux1_x86_64.whl, I believe) and type: sudo pip install LightPipes-1.1.3-cp27-cp27m-manylinux1_x86_64.whl Hope this works! Fred. |
I just got it working another way. For some reason installing pip via
command line installs the wrong version (no idea how). Uninstalling it and
reinstalling pip via the man page seemed to work. I still have errors but I
now can generate output.
Many thanks for your replies!
Much appreciated, I generally use the matlab version we bought but if I
want to use my own laptop I wanted this.
David
…On 10 July 2017 at 22:07, FredvanGoor ***@***.***> wrote:
Yes, simply download the wheel for your python 2.7 and machine
(LightPipes-1.1.3-cp27-cp27m-manylinux1_x86_64.whl, I believe) and type:
sudo pip install LightPipes-1.1.3-cp27-cp27m-manylinux1_x86_64.whl
Hope this works!
Fred.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AcqbZMnylFC2D79YEAg1gZNQutz3sddcks5sMoSagaJpZM4OTQy2>
.
--
David O'Dwyer PhD
Optical Physicist / Design Engineer
ASML
Veldhoven
Netherlands
|
Good to hear that it works now. If the errors are LightPipes related I like to know... Fred. |
Hi Fred,
I have a quick LP enquiry. I currently at work use the Matlab LP tool box
not the python version we discussed. While I was reading the python
function I noticed a GaussLaguerre function that is not in the Matlab tool
box. For my current work this is what I am currently beginning to
investigate designing an optical setup. The Matlab tool box can create a
LG01 mode via HM01 + iHM01 mixing, however generating higher order modes
does not work so well as far as I can determine. Before I try and write my
own script I am wondering if there an equivalent Gauss Laguerre .Mex file
for Matlab ?
Kind Regards
David
…On 10 Jul 2017 10:28 p.m., "FredvanGoor" ***@***.***> wrote:
Good to hear that it works now. If the errors are LightPipes related I
like to know...
Fred.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AcqbZJCVdMWy46hIJy55J_XNYRX3Uckhks5sMoligaJpZM4OTQy2>
.
|
Hi David,
I cannot make a Gauss Laguerre Matlab mex because I have no Matlab anymore.
(I used the University Matlab and I am retired now!).
But if you promise not to publish the source file and use it for your
project only, you can use the attached GaussHermite source as a template to
make your own GaussLaguerre mex. Replace the Gauss Hermite function by the
Gauss Laguerre function which you can find in "lpspy.cpp".
Notice that I added an extra row to the complex field array in order to
transport properties like the wavelength and grid size with the field
array. You know how to compile/link?
If it works, please sent me a copy of the source and the mex so that I can
make other customers happy!
Success!
Fred.
2017-07-18 20:34 GMT+02:00 liquid-dave <[email protected]>:
… Hi Fred,
I have a quick LP enquiry. I currently at work use the Matlab LP tool box
not the python version we discussed. While I was reading the python
function I noticed a GaussLaguerre function that is not in the Matlab tool
box. For my current work this is what I am currently beginning to
investigate designing an optical setup. The Matlab tool box can create a
LG01 mode via HM01 + iHM01 mixing, however generating higher order modes
does not work so well as far as I can determine. Before I try and write my
own script I am wondering if there an equivalent Gauss Laguerre .Mex file
for Matlab ?
Kind Regards
David
On 10 Jul 2017 10:28 p.m., "FredvanGoor" ***@***.***> wrote:
> Good to hear that it works now. If the errors are LightPipes related I
> like to know...
>
> Fred.
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <https://github.com/FredvanGoor/LightPipes-for-
Python/issues/1#issuecomment-314226383>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-
auth/AcqbZJCVdMWy46hIJy55J_XNYRX3Uckhks5sMoligaJpZM4OTQy2>
> .
>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/APLN05jG9sg3iShAzGp9knROf1eQAP_Fks5sPPq0gaJpZM4OTQy2>
.
|
Hi Fred,
Sorry for the delayed reply but I was traveling and I did not set an away
message.
I will gladly try and modify and return the Mex file. I will not share the
source code and just return the code when I make it work.
I did not see attachments perhaps you can resend. I will work on it when I
get time over the next week or so and send you back the files.
Kind regards
David
…On 21 Jul 2017 7:58 p.m., "FredvanGoor" ***@***.***> wrote:
Hi David,
I cannot make a Gauss Laguerre Matlab mex because I have no Matlab anymore.
(I used the University Matlab and I am retired now!).
But if you promise not to publish the source file and use it for your
project only, you can use the attached GaussHermite source as a template to
make your own GaussLaguerre mex. Replace the Gauss Hermite function by the
Gauss Laguerre function which you can find in "lpspy.cpp".
Notice that I added an extra row to the complex field array in order to
transport properties like the wavelength and grid size with the field
array. You know how to compile/link?
If it works, please sent me a copy of the source and the mex so that I can
make other customers happy!
Success!
Fred.
2017-07-18 20:34 GMT+02:00 liquid-dave ***@***.***>:
> Hi Fred,
>
> I have a quick LP enquiry. I currently at work use the Matlab LP tool box
> not the python version we discussed. While I was reading the python
> function I noticed a GaussLaguerre function that is not in the Matlab
tool
> box. For my current work this is what I am currently beginning to
> investigate designing an optical setup. The Matlab tool box can create a
> LG01 mode via HM01 + iHM01 mixing, however generating higher order modes
> does not work so well as far as I can determine. Before I try and write
my
> own script I am wondering if there an equivalent Gauss Laguerre .Mex file
> for Matlab ?
>
>
> Kind Regards
>
> David
>
> On 10 Jul 2017 10:28 p.m., "FredvanGoor" ***@***.***>
wrote:
>
> > Good to hear that it works now. If the errors are LightPipes related I
> > like to know...
> >
> > Fred.
> >
> > —
> > You are receiving this because you authored the thread.
> > Reply to this email directly, view it on GitHub
> > <https://github.com/FredvanGoor/LightPipes-for-
> Python/issues/1#issuecomment-314226383>,
> > or mute the thread
> > <https://github.com/notifications/unsubscribe-
> auth/AcqbZJCVdMWy46hIJy55J_XNYRX3Uckhks5sMoligaJpZM4OTQy2>
> > .
> >
>
> —
> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub
> <https://github.com/FredvanGoor/LightPipes-for-Python/
issues/1#issuecomment-316157112>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/APLN05jG9
sg3iShAzGp9knROf1eQAP_Fks5sPPq0gaJpZM4OTQy2>
> .
>
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AcqbZDJnNTIOf9z4MPaLbki7dMWpGWV1ks5sQOakgaJpZM4OTQy2>
.
|
Hi Fred,
I realise you do not have access to matlab, however perhaps if you have seen this issue before or know of an error on my behalf or within my interpretation of the usage of the functions it would be much appreciated.
I am having some trouble interpreting the output of a simple LP script which uses LensForvard/Fresnel. In the script attached you will find three fields, each use LPLensForvard to propagate a field to the focal plane using the method in the manual with the weaker masking lens. My overall use case in which I am trying to use this to modify a field before a lens then examine the phase/field around the focus (within Xk optical cycles) with a +- LPForvard scan around the focal point. However I find the position of the focus is dependent upon the input waist size. As you can imagine this leads to a lot of other issues when I complexify my model. My input field is well within the Rayleigh range so it is not a rapidly diverging field so I expect the waist to be formed at the focal position of the lens. Also the curvature of the field is not flat at the calculated focal position which is a key to this also.
Is there a further scaling factor that needs to be applied to the Z scale to compensate for this that you know of. I should also add I use LPLensForvard over LPLensFresnel as I get an even more different result using this method and square beams.
Any advice would be greatly appreciated.
David
David O'Dwyer
ASML Netherlands B.V.
Research Dept - Senors
P.O. Box 324, 5500 AH Veldhoven
Room 07.H.02.006
Mobile +31 615489065
…-- The information contained in this communication and any attachments is confidential and may be privileged, and is for the sole use of the intended recipient(s). Any unauthorized review, use, disclosure or distribution is prohibited. Unless explicitly stated otherwise in the body of this communication or the attachment thereto (if any), the information is provided on an AS-IS basis without any express or implied warranties or liabilities. To the extent you are relying on this information, you are doing so at your own risk. If you are not the intended recipient, please notify the sender immediately by replying to this message and destroy all copies of this message and any attachments. Neither the sender nor the company/group of companies he or she represents shall be liable for the proper and complete transmission of the information contained in this communication, or for any delay in its receipt.
|
Easy install does not seem to work any more, light pipes installs but upon execution of the python script it says Light pipes does not exist.
Trying to simply install the whl via pip mentions my arch is not compatible even if i use the x86_64 code base...
Further more tried to install via the latest .egg and I get the following error.
Using Opensuse 42.2 x86_64
'''
4.4.73-18.17-default
Python 2.7.13
'''
My list of pip scripts
`
`
Even though it says LightPipes is installed excution of geany yields the following
`Traceback .....
File "young.py" , line 1 in
import LightPipes
ImportError: No module named LightPipes`
99% Sure something is wrong my end but I cannot find the solution.
The text was updated successfully, but these errors were encountered: