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

discovery.py library, discover_facts function, when returning np.hstack if some array is empty #269

Open
JRCabrejas opened this issue Dec 16, 2022 · 0 comments

Comments

@JRCabrejas
Copy link

JRCabrejas commented Dec 16, 2022

Description

There is an error when calling np.hstack because one of the arrays are empty (when returbing data)
Installed version 1.4

Actual Behavior

ValueError: all the input array dimensions for the concatenation axis must match exactly, but along dimension 0, the array at index 0 has size 0 and the array at index 2 has size 2

Expected Behavior

before adding an empty array to discoveries and/or discovery_ranks lists, empty array should not being append to the list

Steps to Reproduce

just try with few candidates but it depends of your dartaset of triples

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

1 participant