Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resize-error in all_overlaps_both #41

Open
endrebak opened this issue Jan 3, 2021 · 2 comments
Open

Resize-error in all_overlaps_both #41

endrebak opened this issue Jan 3, 2021 · 2 comments

Comments

@endrebak
Copy link
Collaborator

endrebak commented Jan 3, 2021

pyranges/pyranges#167

@jd3builds
Copy link

jd3builds commented Nov 17, 2021

Any update on this? I'm getting a similar error. I'm using the C/Cython method for deriving the overlaps and getting something like this:

  File "C:/Users/PycharmProjects/MobNetMatchingGroup/main.py", line 139, in <module>
    main()
  File "C:/Users/PycharmProjects/MobNetMatchingGroup/main.py", line 130, in main
    l_indices, r_indices = ncl_month.all_overlaps_both(april_2012_dataset.startTime.values, april_2012_dataset.endTime.values, april_2012_dataset.index.values)
  File "ncls/src/ncls.pyx", line 75, in ncls.src.ncls.NCLS64.all_overlaps_both
    cpdef all_overlaps_both(self,
  File "ncls/src/ncls.pyx", line 116, in ncls.src.ncls.NCLS64.all_overlaps_both
    output_arr = np.resize(output_arr, length)
  File "<__array_function__ internals>", line 5, in resize
  File "C:\Users\PycharmProjects\MobNetMatchingGroup\venv\lib\site-packages\numpy\core\fromnumeric.py", line 1425, in resize
    raise ValueError('all elements of `new_shape` must be non-negative')
ValueError: all elements of `new_shape` must be non-negative

unsure what the fix might be, as this seems to be internal.

@endrebak
Copy link
Collaborator Author

I think it is just an overflow error. You have too many hits?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants