Skip to content

Conversation

@lshaw8317
Copy link
Collaborator

@lshaw8317 lshaw8317 commented Nov 13, 2025

Implementing a solution for #271. In the end a context manager is overkill. One can now operate on Dataset instances and mix them with blosc2.LazyExpr instances like so

    # test streamlined API
    a = auth_client.get(oppt)
    ls = blosc2.lazyexpr(f"linspace(0,1, {a.shape[0]})")
    mylazyexpr = a + 0 + ls

and then send the lazy expression to the server like so lxpath = auth_client.upload_lazyexpr(lxpath, mylazyexpr).

Copy link
Member

@FrancescAlted FrancescAlted left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have a couple of comments.

@lshaw8317 lshaw8317 merged commit b967bcd into main Nov 14, 2025
3 checks passed
@lshaw8317 lshaw8317 deleted the dataset_expr branch November 14, 2025 15:38
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.

3 participants