You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to open an ECLFile using the byte stream I have on RAM.
However, it looks like ECLFile is forcing me to save this to disk first and then provide a filepath. I suggest that filelike objects be added to acceptable inputs for ECLFile to avoid saving to disk only to load back into RAM.
Here is example code:
from io import BytesIO
from ecl.eclfile import EclFile
byte_stream = BytesIO()
# any cloud based client would suffice here
_client().download_fileobj(Bucket=bucket, Key=key, Fileobj=byte_stream)
# fails on this line currently, expecting a filepath, not a filelike object
timestep_file = EclFile(byte_stream)
swat_kw = timestep_file.iget_named_kw("SWAT", 0)
The text was updated successfully, but these errors were encountered:
I'm trying to open an ECLFile using the byte stream I have on RAM.
However, it looks like ECLFile is forcing me to save this to disk first and then provide a filepath. I suggest that filelike objects be added to acceptable inputs for ECLFile to avoid saving to disk only to load back into RAM.
Here is example code:
The text was updated successfully, but these errors were encountered: