Skip to content

Commit b4b6390

Browse files
troyraenbsipocz
andauthored
Apply suggestions from code review
Co-authored-by: Brigitta Sipőcz <bsipocz@gmail.com>
1 parent a3eb368 commit b4b6390

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tutorials/spherex/spherex_cutouts.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ 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-
results_table_serial = results_table_serial[[r["hdus"] is not None for r in results_table_serial]]
260+
results_table_serial = results_table_serial[result_table_serial["hdus"] != None]
261261
```
262262

263263
### 7.2 Parallel Approach
@@ -296,7 +296,7 @@ with concurrent.futures.ThreadPoolExecutor(max_workers=10) as executor:
296296
print("Time to create cutouts in parallel mode: {:2.2f} minutes.".format((time.time() - t1) / 60))
297297
298298
# Drop rows that failed to download.
299-
results_table_parallel = results_table_parallel[[r["hdus"] is not None for r in results_table_parallel]]
299+
results_table_parallel = results_table_parallel[results_table_parallel["hdus"] != None]
300300
```
301301

302302
## 8. Create a summary table HDU with renamed columns

0 commit comments

Comments
 (0)