Skip to content

Commit f796d94

Browse files
committed
Hardwire SpectrumDM base url instead of coercing a TAP url
1 parent c7f1596 commit f796d94

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

tutorials/euclid_access/3_Euclid_intro_1D_spectra.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,6 @@ We rely on ``astroquery`` features that have been recently added, so please make
5555
```
5656

5757
```{code-cell} ipython3
58-
import urllib
59-
6058
import numpy as np
6159
import matplotlib.pyplot as plt
6260
@@ -100,7 +98,7 @@ result = Irsa.query_tap(adql_object).to_table()
10098
Pull out the file name from the ``result`` table:
10199

102100
```{code-cell} ipython3
103-
spectrum_path = urllib.parse.urljoin(Irsa.tap_url, result['path'][0])
101+
spectrum_path = f"https://irsa.ipac.caltech.edu/{result['path'][0]}"
104102
spectrum_path
105103
```
106104

tutorials/euclid_access/5_Euclid_intro_SPE_catalog.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,6 @@ We rely on ``astroquery`` features that have been recently added, so please make
5858
```
5959

6060
```{code-cell} ipython3
61-
import re
62-
import urllib
63-
6461
import matplotlib.pyplot as plt
6562
import numpy as np
6663
@@ -209,7 +206,7 @@ result_table2 = Irsa.query_tap(adql_object).to_qtable()
209206
### The following steps to read in the spectrum follows the 3_Euclid_intro_1D_spectra notebook.
210207

211208
```{code-cell} ipython3
212-
spectrum_path = urllib.parse.urljoin(Irsa.tap_url, result_table2['path'][0])
209+
spectrum_path = f"https://irsa.ipac.caltech.edu/{result_table2['path'][0]}"
213210
spectrum_path
214211
```
215212

0 commit comments

Comments
 (0)