We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9170653 commit 1e06e84Copy full SHA for 1e06e84
activestorage/active.py
@@ -40,8 +40,10 @@ def load_from_s3(uri):
40
# client_kwargs={'endpoint_url': S3_URL}) # eg "http://localhost:9000" for Minio
41
fs = s3fs.S3FileSystem(anon=True,
42
client_kwargs={'endpoint_url': "https://" + S3_URL})
43
- print("S3 file URI:", uri)
44
- with fs.open(uri, 'rb') as s3file:
+ print("Complete S3 file URI:", uri)
+ clip_uri = os.path.join(S3_BUCKET, os.path.basename(uri))
45
+ print("JASMIN S3-specific uri:", clip_uri)
46
+ with fs.open(clip_uri, 'rb') as s3file:
47
ds = h5netcdf.File(s3file, 'r', invalid_netcdf=True)
48
print(f"Dataset loaded from S3 via h5netcdf: {ds}")
49
yield ds
0 commit comments