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

Request - Provide file-object instead of file-name #573

Open
SahandJ opened this issue May 16, 2024 · 1 comment
Open

Request - Provide file-object instead of file-name #573

SahandJ opened this issue May 16, 2024 · 1 comment

Comments

@SahandJ
Copy link

SahandJ commented May 16, 2024

Would it be possible to use segyio but instead of providing the file-name, rather provide a file-object as returned by open(), or more specifically smart_open from the smart-open library?

From my understanding, the file has to be on disk as segyio.open requires the file-name as an argument. However it looks like the read/write is done through C++ and I'm not sure if that would accept a file-object (I'm not very experienced with C++)

I hope that this would be something that could be added in the future. Currently we can use FUSE to fuse the remote cloud fs on disk.

@sveinung-r
Copy link
Contributor

Hi,

As you mentioned the io happens in C, and thus adding support for file-object requires a significant re-design. There is unfortunately no such effort currently planned from our side.

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