Skip to content

Introduce Dataset inheritance from blosc2.Operand - #272

Merged
lshaw8317 merged 7 commits into
mainfrom
dataset_expr
Nov 14, 2025
Merged

Introduce Dataset inheritance from blosc2.Operand#272
lshaw8317 merged 7 commits into
mainfrom
dataset_expr

Conversation

@lshaw8317

@lshaw8317 lshaw8317 commented Nov 13, 2025

Copy link
Copy Markdown
Collaborator

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).

@FrancescAlted FrancescAlted left a comment

Copy link
Copy Markdown
Member

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.

Comment thread caterva2/services/server.py Outdated
Comment thread caterva2/services/server.py Outdated
@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
Comment thread caterva2/services/server.py
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