Skip to content

Commit ad98675

Browse files
committed
Adding new requirements for the Euclid ERO notebook and fixing install and import cells
1 parent 6a6523d commit ad98675

2 files changed

Lines changed: 11 additions & 16 deletions

File tree

.binder/requirements.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# For the content of the tutorials
2+
tqdm
23
numpy
34
matplotlib
45
astropy
@@ -12,8 +13,10 @@ dask[distributed]
1213
psutil
1314
ray
1415
s3fs
15-
firefly-client
16+
firefly-client>=3.2.0
1617
jupyter-firefly-extensions
1718
reproject
19+
photutils
20+
sep>=1.4
1821
# For supporting myst-based notebooks
1922
jupytext

tutorials/euclid_access/Euclid_ERO.md

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,14 @@ The total data volume required for running this notebook is less than 20 MB.
4040
First, we import all necessary packages.
4141

4242
```python
43-
!pip install -r requirements_euclid.txt ## BRIGITTA: CHANGE THIS....
43+
# Uncomment the next line to install dependencies if needed.
44+
# !pip install tqdm numpy matplotlib astropy photutils astroquery>0.4.10 sep>=1.4 firefly_client>=3.2
45+
```
4446

47+
```python
4548
# General imports
46-
import os, sys
49+
import os
4750
import numpy as np
48-
import glob
4951
from tqdm import tqdm
5052

5153
# Astroquery
@@ -55,10 +57,10 @@ from astroquery.gaia import Gaia
5557
# Astropy
5658
from astropy.coordinates import SkyCoord
5759
from astropy import units as u
58-
from astropy.io import fits, ascii
60+
from astropy.io import fits
5961
from astropy.nddata import Cutout2D
6062
from astropy.wcs import WCS
61-
from astropy.table import Table, vstack, hstack
63+
from astropy.table import Table
6264
from astropy.stats import sigma_clipped_stats
6365

6466
# Photometry tools
@@ -104,16 +106,6 @@ mpl.rcParams['hatch.linewidth'] = 1
104106
def_cols = plt.rcParams['axes.prop_cycle'].by_key()['color']
105107
```
106108

107-
In case `astropy` and `firefly-client` are not up-to-date in the image on the science platform, we can upgrade them here. If all is up-to-date, the following cell can be ignored.
108-
109-
```python
110-
# Need to do this to upgrade the astroquery version to avoid attribute error.
111-
#!pip install --upgrade --pre astroquery
112-
113-
# Need to do this to upgrade the firefly-client version to avoid attribute error.
114-
#!pip install --upgrade --pre firefly-client
115-
```
116-
117109
## Setting up the Environment
118110

119111
Next, we set up the environment. This includes

0 commit comments

Comments
 (0)