Skip to content

Commit 657538f

Browse files
authored
Merge pull request #84 from bsipocz/MAINT_pip_installs
MAINT: fix pip install lines
2 parents 6154b31 + f84dc3a commit 657538f

File tree

6 files changed

+11
-16
lines changed

6 files changed

+11
-16
lines changed

tutorials/cloud_access/cloud-access-intro.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ jupytext:
44
extension: .md
55
format_name: myst
66
format_version: 0.13
7-
jupytext_version: 1.16.2
7+
jupytext_version: 1.16.7
88
kernelspec:
99
display_name: Python 3 (ipykernel)
1010
language: python
@@ -86,7 +86,7 @@ This cell will install them if needed:
8686

8787
```{code-cell} ipython3
8888
# Uncomment the next line to install dependencies if needed.
89-
# !pip install astropy hpgeom pandas pyarrow pyvo>=1.5 s3fs matplotlib astroquery
89+
# !pip install astropy hpgeom pandas pyarrow 'pyvo>=1.5' s3fs matplotlib astroquery
9090
```
9191

9292
## 4. Browse buckets
@@ -166,7 +166,6 @@ To request that additional datasets be made available in cloud storage, please c
166166
# from astroquery.ipac.irsa import Irsa
167167
168168
# Irsa.list_collections()
169-
170169
```
171170

172171
Use PyVO to execute a search for Spitzer SEIP Super Mosaics and find cloud access information:
@@ -339,6 +338,7 @@ results_df["W1-W2"] = results_df["w1mpro"] - results_df["w2mpro"]
339338
results_df["W2-W3"] = results_df["w2mpro"] - results_df["w3mpro"]
340339
results_df.plot.hexbin("W2-W3", "W1-W2", norm=colors.LogNorm(vmin=1, vmax=500))
341340
```
341+
342342
***
343343

344344
## About this notebook

tutorials/cloud_access/euclid-cloud-access.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ jupytext:
44
extension: .md
55
format_name: myst
66
format_version: 0.13
7-
jupytext_version: 1.16.3
7+
jupytext_version: 1.16.7
88
kernelspec:
99
display_name: Python 3 (ipykernel)
1010
language: python
@@ -48,7 +48,7 @@ If you have questions, please contact the [IRSA helpdesk](https://irsa.ipac.calt
4848

4949
```{code-cell} ipython3
5050
# Uncomment the next line to install dependencies if needed.
51-
# !pip install s3fs astropy astroquery>=0.4.10 matploltib
51+
# !pip install s3fs astropy 'astroquery>=0.4.10' matplotlib
5252
```
5353

5454
```{code-cell} ipython3

tutorials/euclid_access/1_Euclid_intro_MER_images.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ Each MER image is approximately 1.47 GB. Downloading can take some time.
5858

5959
```{code-cell} ipython3
6060
# Uncomment the next line to install dependencies if needed.
61-
# !pip install numpy astropy>=5.3 matplotlib pyvo sep>=1.4 fsspec pandas
61+
# !pip install numpy 'astropy>=5.3' matplotlib pyvo 'sep>=1.4' fsspec pandas
6262
```
6363

6464
```{code-cell} ipython3

tutorials/euclid_access/4_Euclid_intro_PHZ_catalog.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ If you have questions about this notebook, please contact the [IRSA helpdesk](ht
5151

5252
```{code-cell} ipython3
5353
# Uncomment the next line to install dependencies if needed.
54-
# !pip install requests matplotlib pandas astropy>5.2 pyvo fsspec firefly_client
54+
# !pip install requests matplotlib pandas 'astropy>=5.3' pyvo fsspec firefly_client
5555
```
5656

5757
```{code-cell} ipython3

tutorials/euclid_access/Euclid_ERO.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ First, we import all necessary packages.
5353

5454
```{code-cell} ipython3
5555
# Uncomment the next line to install dependencies if needed.
56-
# !pip install tqdm numpy matplotlib astropy photutils>=2.0 astroquery>=0.4.10 sep>=1.4 firefly_client>=3.2
56+
# !pip install tqdm numpy matplotlib astropy 'photutils>=2.0' 'astroquery>=0.4.10' 'sep>=1.4' 'firefly_client>=3.2'
5757
```
5858

5959
```{code-cell} ipython3
@@ -159,7 +159,6 @@ Irsa.list_collections(servicetype='SIA')
159159

160160
Here we use the collection *euclid_ero*, containing the Euclid ERO images. We first create a `SkyCoord` object and then query the SIA.
161161

162-
163162
```{code-cell} ipython3
164163
image_tab = Irsa.query_sia(pos=(coord, search_radius), collection='euclid_ero')
165164
print("Number of images available: {}".format(len(image_tab)))
@@ -319,7 +318,6 @@ mask = np.isnan(img)
319318

320319
Next, we compute the background statistics what will be used by `sep` to extract the sources above a certain threshold.
321320

322-
323321
```{code-cell} ipython3
324322
mean, median, std = sigma_clipped_stats(img, sigma=3.0)
325323
print(np.array((mean, median, std)))
@@ -359,7 +357,6 @@ psfphot = PSFPhotometry(psf_model,
359357
finder = DAOStarFinder(fwhm=0.1, threshold=3.*std, exclude_border=True), # not needed because we are using fixed initial positions.
360358
aperture_radius = 4,
361359
progress_bar = True)
362-
363360
```
364361

365362
After initiating the `PSFPhotometry` object, we can run the PSF photometry measurement. This can take a while (typically between 1 and 2 minutes).
@@ -448,7 +445,6 @@ mask2 = np.isnan(img2)
448445

449446
... and we also get some statistics on the sky background.
450447

451-
452448
```{code-cell} ipython3
453449
mean2, median2, std2 = sigma_clipped_stats(img2, sigma=3.0)
454450
print(np.array((mean2, median2, std2)))
@@ -521,7 +517,6 @@ Gaia.ROW_LIMIT = -1
521517

522518
Next, we request the Gaia catalog around the position of the globular cluster. We use the same size as the cutout size.
523519

524-
525520
```{code-cell} ipython3
526521
gaia_objects = Gaia.query_object_async(coordinate=coord, radius = cutout_size/2)
527522
print("Number of Gaia stars found: {}".format(len(gaia_objects)))

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ jupytext:
44
extension: .md
55
format_name: myst
66
format_version: 0.13
7-
jupytext_version: 1.16.2
7+
jupytext_version: 1.16.7
88
kernelspec:
9-
display_name: parquet
9+
display_name: Python 3 (ipykernel)
1010
language: python
1111
name: python3
1212
---
@@ -43,7 +43,7 @@ Each method accesses the parquet files a bit differently and is useful for diffe
4343

4444
```{code-cell} ipython3
4545
# Uncomment the next line to install dependencies if needed.
46-
# !pip install pandas>=1.5.2 pyarrow>=10.0.1 matplotlib hpgeom astropy
46+
# !pip install 'pandas>=1.5.2' 'pyarrow>=10.0.1' matplotlib hpgeom astropy
4747
```
4848

4949
```{code-cell} ipython3

0 commit comments

Comments
 (0)