gnlse-python icon indicating copy to clipboard operation
gnlse-python copied to clipboard

Some minor discrepancy between result from gnlse-python and that from SCGBookCode

Open Simulator-CEM opened this issue 2 months ago • 0 comments

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

Simulator-CEM avatar Nov 28 '25 07:11 Simulator-CEM