Skip to content

open lazyexpr don't fail if missing operands (wip) #385

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

Merged
merged 1 commit into from
Apr 18, 2025

Conversation

jdavid
Copy link
Contributor

@jdavid jdavid commented Apr 17, 2025

To reproduce:

blosc2.open('path-to-lazy-expression-with-missing operands')

With this change it still tries to guess the dtype and the shape, but this either fails with an error or makes the wrong guess. Because with missing operands it's imposible to correctly find out the dtype and shape, in this case dtype and shape should be None (this remains to be done).

There should be an error when trying to evaluate the expression, but not when opening it, because we may want to inspect it.

@jdavid
Copy link
Contributor Author

jdavid commented Apr 17, 2025

Ops, sorry this should be a draft PR.

@FrancescAlted
Copy link
Member

LGTM. Thanks @jdavid !

@FrancescAlted FrancescAlted merged commit 90e0daf into main Apr 18, 2025
10 checks passed
@FrancescAlted FrancescAlted deleted the lazyexpr-missing-operands branch April 18, 2025 07:30
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

Successfully merging this pull request may close these issues.

2 participants