8000 clipping complex array crashes python · Issue #5354 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content
clipping complex array crashes python #5354
Closed
@arve0

Description

@arve0

This crashes my python kernel:

$ python
Python 3.4.1 (default, Aug 24 2014, 21:32:40) 
[GCC 4.2.1 Compatible Apple LLVM 5.1 (clang-503.0.40)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy as np
>>> from numpy.fft import fft2
>>> size = 256
>>> t = np.linspace(start=0, stop=50*np.pi, endpoint=False, num=size)
>>> x,y = np.meshgrid(t, t)
>>> img = (127 + 127*np.sin(x)).astype(np.uint8)
>>> F = fft2(img)
>>> F_min = F.min()
>>> F = F.clip(F_min) # this crashes python
Segmentation fault: 11

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0