Closed hn-88 closed 8 years ago
Complete tracebacks for the two errors are:
Traceback (most recent call last):
File "SCG1.py", line 48, in
and later,
File "SCG1.py", line 57, in
Let me answer my own issue:
Problem solved by installing the latest version of pynlo from github, using pip install git+https://github.com/pyNLO/PyNLO.git
One more gotcha which might trouble newbies is that pynlo needs Python 2 and won't work out of the box with Python 3. It gives the classic error message about Print command needing parenthesis.
Hi @hn-88! Thanks for bringing up these issues. Did getting the latest version also fix the issues with the "general_fibers.txt"?
Very good point about Python3. We have used lots of Py2-style print statements, and there are probably other issues with using PyNLO with Python3. In the long run, it shouldn't be too difficult to enable compatibility, but in the short run, we should certainly adjust the readme to point out that Py3 compatibility is currently not supported.
Yes. I installed the latest version after removing all python-related files, re-installing anaconda, and after all dependencies were met. Then, when I ran the example script, it ran without the need for any modifications.
Thanks for pointing out the issues with the PyPi version of the code; it is slightly out-of-date. Please let us know how things go -- this code is still very much in development / research-grade!
Hello Dan & Gabriel,
Thanks for making this available. Please do let me know if you have any publications which you wish to be cited when citing pynlo, in case we use it for some of our research work.
I've written up details of my first use of pynlo at http://hnsws.blogspot.in/2016/05/installing-and-using-pynlo.html
I put in a Pull-Request to fix the README: https://github.com/pyNLO/PyNLO/pull/28
Yes, you've got our names right :). We don't have a reference for PyNLO yet, but we'll try to get one out there soon. Check back when you need a reference.
Thanks for the write-up on your blog. I have found that FFTW is not a huge speed-up for the SSFM calculations. So, it's not super-important if it doesn't install.
Let us know how it goes! Out of curiosity, what are you hoping to use PyNLO to simulate?
I was planning to simulate SCG with Thorlabs PCF with lower power fs lasers on Matlab, and was googling PCF 1550 or something like that when pynlo documentation pdf with the supercontinuum example came up in the results :)
Yup, that should be pretty straightforward if you have the dispersion profile of the fiber. That might actually make a really nice example for PyNLO.
Let us know how it goes!
Hi, I've just installed anaconda2 and then pip install pynlo.
When I try to run python SCG1.py, where SCG1.py is the example given at http://pynlo.readthedocs.io/en/latest/example_simple.html
I got the following errors:
Since I'm a python newb, I'm stuck here. Any help would be welcome.