Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
MingzhenShao opened this issue Jun 1, 2023 · 0 comments
Open

Comments

@MingzhenShao
Copy link

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))?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant