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

Add a mode param in Proxy class #282

Open
FrancescAlted opened this issue Oct 10, 2024 · 0 comments
Open

Add a mode param in Proxy class #282

FrancescAlted opened this issue Oct 10, 2024 · 0 comments
Assignees

Comments

@FrancescAlted
Copy link
Member

FrancescAlted commented Oct 10, 2024

Then pass that to the empty/SChunk constructor. This would avoid blosc2.remove_urlpath() calls in tests and examples.

The signature of the Proxy constructor would become something like:

def __init__(self, src: ProxySource or ProxyNDSource, urlpath: str = None, mode = "a", **kwargs: dict):

Remember to add the docstring in the constructor.

After that, most of the calls to blosc2.remove_urlpath() previous to Proxy() calls in tests and examples can go away and be replaced by Proxy(urlpath=..., mode="w", ...).

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