Skip to content

Commit bcd1d65

Browse files
committed
Track failed cutouts
1 parent 3fa9255 commit bcd1d65

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

tutorials/spherex/spherex_cutouts.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,8 @@ for row in results_table_serial:
257257
print("Time to create cutouts in serial mode: {:2.2f} minutes.".format((time.time() - t1) / 60))
258258
259259
# Drop rows that failed to download.
260+
failed_cutouts_serial = results_table_serial[results_table_serial["hdus"] == None]
261+
print("Failed to get the following cutouts:\n", failed_cutouts_serial["uri"])
260262
results_table_serial = results_table_serial[results_table_serial["hdus"] != None]
261263
```
262264

@@ -296,6 +298,8 @@ with concurrent.futures.ThreadPoolExecutor(max_workers=10) as executor:
296298
print("Time to create cutouts in parallel mode: {:2.2f} minutes.".format((time.time() - t1) / 60))
297299
298300
# Drop rows that failed to download.
301+
failed_cutouts_parallel = results_table_parallel[results_table_parallel["hdus"] == None]
302+
print("Failed to get the following cutouts:\n", failed_cutouts_parallel["uri"])
299303
results_table_parallel = results_table_parallel[results_table_parallel["hdus"] != None]
300304
```
301305

0 commit comments

Comments
 (0)