np arrays being immutable - “assignment destination is read-only”

前端 未结 4 2104
礼貌的吻别
礼貌的吻别 2020-11-30 04:30

FD** - I am a Python newb as well as a stack overflow newb as you can tell. I have edited the question based on comments.

My goal is to read a set of PNG files, crea

4条回答
  •  执笔经年
    2020-11-30 05:02

    ValueError: cannot set WRITEABLE flag to True of this array array.setflags(write=1) 
    

    Skip the statement using copy the array using np.copy()

提交回复
热议问题