Skip to content

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

@Simulator-CEM

Description

@Simulator-CEM

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 #6 (comment)

I hope it could be help and best regards

David

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions