gnlse-python
gnlse-python copied to clipboard
Some minor discrepancy between result from gnlse-python and that from SCGBookCode
Hi all,
There is some minor discrepancy between result from gnlse-python and that from SCGBookCode, to make them match, the following code:
Line 158 of gnlse.py below
self.t = np.linspace(-setup.time_window / 2, setup.time_window / 2, self.N)
should be
self.t = np.arange(-self.N / 2, self.N / 2)*setup.time_window /self.N
I guess this should be also the clue for the problem in https://github.com/WUST-FOG/gnlse-python/issues/6#issue-953406377
I hope it could be help and best regards
David