vaex icon indicating copy to clipboard operation
vaex copied to clipboard

[BUG-REPORT] df.limits breaks in unittests with RuntimeError: stride is not equal to 1

Open abf7d opened this issue 1 year ago • 2 comments

Description I am building an app using vaex v4.9.1 and python 3.9. I use limits function to get the min and max combos for two axes like so:

    limits = df.limits(list(axes_val.values()), delay=False, selection=True)

Just recently randomly all of my unit tests broke, and they all brake on the line above. The error that is produced is RuntimeError: stride is not equal to 1. I tried to track down where this error is originating from but haven't been able to find it. If I run the application normally it works.

How do I fix these unit tests? Where does this stride error come from?

Software information

  • Vaex version vaex==4.9.1
  • Vaex was installed via: pip
  • OS: Windows 10

abf7d avatar Sep 13 '22 21:09 abf7d

Can you post a reproducible example? I can't recreate your problem like this.

JovanVeljanoski avatar Sep 15 '22 07:09 JovanVeljanoski

So I traced the problem down to differences between my global enviornment and the virtual environment used to run the tests. The working version was using numpy==1.19.4 the version that didn't work was numpy==1.23.3. Pinning to numpy=1.19.4 fixed unit tests for vaex==4.9.1 and vaex==4.12.0. What version of numpy is appropriate for vaex==4.12.0?

abf7d avatar Sep 16 '22 15:09 abf7d