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

Transfer files to/from memory #137

Open
jl-wynen opened this issue Aug 31, 2023 · 1 comment
Open

Transfer files to/from memory #137

jl-wynen opened this issue Aug 31, 2023 · 1 comment

Comments

@jl-wynen
Copy link
Collaborator

When Scitacean is tightly integrated into a workflow, there may not be a need to save data to disk. Instead, it could be useful to load some data directly into memory from the fileserver or write an in-memory buffer to the fileserver.

This would require support from File which could store a BytesIO instead of a Path for local. And the file transfers would read from / write to the buffer instead of a actual file.

There are some downsides:

  • For downloads, the data wouldn't be cached on the local machine. So it would have to be downloaded again if the program needs to run again.
  • For uploads, if the upload fails, the data may be lost if the program can't recover automatically (or through user input in an interactive session).
@bpedersen2
Copy link

Interessting feature, especially for small datafiles in automated workflows.

I would suggest to make an (not too high) upper bound on the filesize where this is possible, as nowadays datafiles in the TB-range are not uncommon.

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