Skip to content

Commit 70d492c

Browse files
Merge pull request #260 from NCAS-CMS/add_wacasoft_active_server
Add Wacasoft Reductionist server and use it for tests
2 parents 237e4a6 + 099be08 commit 70d492c

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

activestorage/active.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,7 @@ def _process_chunk(self, session, ds, chunks, chunk_coords, chunk_selection,
636636
# special case for "anon=True" buckets that work only with e.g.
637637
# fs = s3fs.S3FileSystem(anon=True, client_kwargs={'endpoint_url': S3_URL})
638638
# where file uri = bucketX/fileY.mc
639-
print("S3 Storage options to Reductionist:", self.storage_options)
639+
# print("S3 Storage options to Reductionist:", self.storage_options)
640640
if self.storage_options.get("anon", None) == True:
641641
bucket = os.path.dirname(parsed_url.path) # bucketX
642642
object = os.path.basename(parsed_url.path) # fileY
@@ -670,7 +670,7 @@ def _process_chunk(self, session, ds, chunks, chunk_coords, chunk_selection,
670670

671671
# Reductionist returns "count" as a list even for single elements
672672
tmp, count = reductionist.reduce_chunk(session,
673-
"https://192.171.169.113:8080",
673+
"https://reductionist.jasmin.ac.uk/", # Wacasoft
674674
self.filename,
675675
bucket, self.filename, offset,
676676
size, compressor, filters,

tests/test_real_s3.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ def test_s3_dataset():
2020
'secret': "$/'#M{0{/4rVhp%n^(XeX$q@y#&(NM3W1->~N.Q6VP.5[@bLpi='nt]AfH)>78pT",
2121
'client_kwargs': {'endpoint_url': "https://uor-aces-o.s3-ext.jc.rl.ac.uk"},
2222
}
23-
active_storage_url = "https://192.171.169.113:8080"
23+
# active_storage_url = "https://192.171.169.113:8080" # Bryan VM
24+
active_storage_url = "https://reductionist.jasmin.ac.uk/" # Wacasoft
2425
# bigger_file = "ch330a.pc19790301-bnl.nc" # 18GB 3400 HDF5 chunks
2526
bigger_file = "ch330a.pc19790301-def.nc" # 17GB 64 HDF5 chunks
2627
# bigger_file = "da193a_25_day__198808-198808.nc" # 3GB 30 HDF5 chunks

0 commit comments

Comments
 (0)