Skip to content

Commit a5b2112

Browse files
committed
experiment with even larger threshold
1 parent 14b48f7 commit a5b2112

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

orca/requester.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,15 +173,16 @@ def bisect_request(url, threshold, nbytes, data_vars, time_indices):
173173
case is when a request is under the threshold. This method will construct
174174
a list of requests.
175175
"""
176-
threshold = 1e9 # temporarily trying larger threshold for test purposes
176+
logger.debug("Using hardcoded threshold of 2GB for bisecting")
177+
threshold = 2e9
177178

178179
if nbytes < threshold:
179-
logger.debug(f"Request under threshold: {round(nbytes * 10**-6)}/500 mb")
180+
logger.debug(f"Request under threshold: {round(nbytes * 10**-6)}/{threshold * 10**-6}MB")
180181
return [url]
181182

182183
else:
183184
logger.debug(
184-
f"Splitting, request over threshold: {round(nbytes * 10**-6)}/500 mb"
185+
f"Splitting, request over threshold: {round(nbytes * 10**-6)}/{threshold * 10**-6}MB"
185186
)
186187

187188
# Bisect data variables

0 commit comments

Comments
 (0)