Skip to content

Commit 7648593

Browse files
authored
Merge pull request #128 from troyraen/raen/issues/122/allwise-crashes-ci
Fix AllWISE catalog demo CI failure
2 parents 15bc43e + 9fa21d8 commit 7648593

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

tutorials/parquet-catalog-demos/wise-allwise-catalog-demo.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ bucket = "nasa-irsa-wise"
7777
folder = "wise/allwise/catalogs/p3as_psd/healpix_k5"
7878
parquet_root = f"{bucket}/{folder}/wise-allwise.parquet"
7979
80-
fs = S3FileSystem(region="us-west-2") # the bucket is in region us-west-2
80+
fs = S3FileSystem(region="us-west-2", anonymous=True) # the bucket is in region us-west-2
8181
```
8282

8383
These limits will be used to query the catalog using specific filters created in examples below.
@@ -165,6 +165,11 @@ pandas_df = pd.read_parquet(
165165
pandas_df.describe()
166166
```
167167

168+
```{code-cell} ipython3
169+
# Delete pandas_df to save memory. This is useful when running on a machine with a small amount of RAM.
170+
del pandas_df
171+
```
172+
168173
## Example 2: Pyarrow with advanced filters (color-color cuts for AGN)
169174

170175
+++
@@ -240,6 +245,12 @@ colorbar_norm = colors.LogNorm(vmin=1, vmax=10) # for an all-sky search, use vm
240245
pyarrow_df.plot.hexbin("w3w4", "w1w2", norm=colorbar_norm)
241246
```
242247

248+
```{code-cell} ipython3
249+
# Delete variables to save memory. This is useful when running on a machine with a small amount of RAM.
250+
del pyarrow_ds
251+
del pyarrow_df
252+
```
253+
243254
## Example 3: Nearest-neighbor search (using pyarrow and astropy)
244255

245256
+++
@@ -311,6 +322,12 @@ neighbors_df = pyarrow_ds.to_table(
311322
neighbors_df
312323
```
313324

325+
```{code-cell} ipython3
326+
# Delete variables to save memory. This is useful when running on a machine with a small amount of RAM.
327+
del pyarrow_ds
328+
del neighbors_df
329+
```
330+
314331
## Schema Access
315332

316333
+++

0 commit comments

Comments
 (0)