somexlab / fastddm

Python library for Differential Dynamic Microscopy analysis
https://fastddm.readthedocs.io/
GNU General Public License v3.0
3 stars 0 forks source link

[BUG]: Resize only works on single-segment arrays #243

Open enrico-lattuada opened 2 months ago

enrico-lattuada commented 2 months ago

Description

When calculating the image structure function with the "cpp" and "cuda" cores, the following error message is returned

ValueError: resize only works on single-segment arrays

Reproducible example code

import fastddm as fd

imgs = fd.read_images(...)
dqt = fd.ddm(imgs, range(1,len(imgs)), core="cpp")

Input files

No response

Output

ValueError: resize only works on single-segment arrays

Expected output

No response

Platform

C++, CUDA, Windows, Linux, macOS

Installation method

Pip

FastDDM version

0.3.10

Python version

3.12.4

Additional context

No response

Is this a regression? Put the last known working version here if it is.

Not a regression

enrico-lattuada commented 2 months ago

The problem is due to an incompatibility between pybind11 2.10.0 and the new version of NumPy 2.0.0.