Traceback (most recent call last):
File "<console>", line 1, in <module>
File "/home/benjamin/.local/lib/python3.10/site-packages/numpy/core/fromnumeric.py", line 2810, in max
return _wrapreduction(a, np.maximum, 'max', axis, None, out,
File "/home/benjamin/.local/lib/python3.10/site-packages/numpy/core/fromnumeric.py", line 88, in _wrapreduction
return ufunc.reduce(obj, axis, dtype, out, **passkwargs)
ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 2 dimensions. The detected shape was (2, 1) + inhomogeneous part.
Context:
https://gitea.lemnoslife.com/Benjamin_Loison/Robust_image_source_identification_on_modern_smartphones/src/commit/72e37a252aa59ac620d441548a3740f0ab8fdcfc/datasets/fake/generate_dataset.py#L31
```py
np.max([prnus, images])
```
```
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "/home/benjamin/.local/lib/python3.10/site-packages/numpy/core/fromnumeric.py", line 2810, in max
return _wrapreduction(a, np.maximum, 'max', axis, None, out,
File "/home/benjamin/.local/lib/python3.10/site-packages/numpy/core/fromnumeric.py", line 88, in _wrapreduction
return ufunc.reduce(obj, axis, dtype, out, **passkwargs)
ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 2 dimensions. The detected shape was (2, 1) + inhomogeneous part.
```
```py
np.array([prnus, images]).flatten()
```
does not help.
https://numpy.org/doc/stable/reference/generated/numpy.ndarray.flatten.html
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Context:
does not help.
https://numpy.org/doc/stable/reference/generated/numpy.ndarray.flatten.html