Skip to content

function sampler2D() cannot process inputs with an odd shape #2

@MingzhenShao

Description

@MingzhenShao

kx = np.concatenate((np.linspace(0,int(nx/2)-1,int(nx/2)),np.linspace(int(-nx/2),-1,int(nx/2))), axis=None) cannot process inputs with an odd shape. Maybe try this kx = np.linspace(int(math.ceil(-nx/2)),int(math.ceil(-nx/2)), int(nx))?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions