Skip to content

Commit d8c8429

Browse files
authored
Merge pull request #162 from bsipocz/MAINT_using_strict
2 parents 6df7657 + 1a51ac1 commit d8c8429

File tree

14 files changed

+58
-48
lines changed

14 files changed

+58
-48
lines changed

myst.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ project:
1313
url: https://mybinder.org
1414
settings:
1515
output_matplotlib_strings: remove
16+
error_rules:
17+
- rule: link-resolves
18+
severity: ignore
19+
keys:
20+
# These link resolve in the browser but generates did not resolve and 403 for the build
21+
- https://irsa.ipac.caltech.edu/cgi-bin/Gator/nph-scan?projshort=SPITZER
1622
extends:
1723
- toc.yml
1824
site:

tox.ini

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ deps =
3838
devdeps: git+https://github.com/astropy/pyvo.git#egg=pyvo
3939
devdeps: git+https://github.com/astropy/astroquery.git#egg=astroquery
4040

41-
allowlist_externals = bash, jupyter-book
41+
allowlist_externals = bash
4242

4343

4444
install_command =
@@ -65,16 +65,17 @@ commands =
6565
buildhtml: bash -c 'cat ignore_tutorials/ignore_rendering_execution >> ignore_testing'
6666

6767
# We only want to run CI in PRs for the notebooks we touched
68-
!buildhtml: bash -c 'if [[ $GITHUB_EVENT_NAME == pull_request && -z "$(grep force_run:all_tests ${GITHUB_EVENT_PATH})" ]]; then git fetch origin main --depth=1; git diff origin/main --name-only tutorials | grep .md; else find tutorials -name "*.md"; fi | grep -vf ignore_testing/ignore_testing | xargs jupytext --to notebook '
68+
!buildhtml: bash -c 'if [[ $GITHUB_EVENT_NAME == pull_request && -z "$(grep force_run:all_tests ${GITHUB_EVENT_PATH})" ]]; then git fetch origin main --depth=1; git diff origin/main --name-only tutorials | grep .md; else find tutorials -name "*.md"; fi | grep -vf ignore_testing | xargs jupytext --to notebook '
6969

70+
!buildhtml: bash -c "echo 'Notebooks ignored (not tested/executed) in this job:\n'; cat ignore_testing"
7071
!buildhtml: pytest --nbval-lax -vv --suppress-no-test-exit-code --durations=10 tutorials
7172

7273
# sed -i needs a bit of hacky conditional on ubuntu to cover the case of an empty ignore
7374
buildhtml: bash -c "find tutorials -name '*md' | grep -f ignore_testing | sort | uniq > ignore_execute; if [ -s ignore_execute ]; then cat ignore_execute | xargs -n 1 sed -i -e 's|name: python3|name: python3\nskip_execution: true|g';fi"
7475

75-
# Status check is a workaround until https://github.com/jupyter-book/mystmd/issues/2113 is fixed
76-
buildhtml: bash -c "jupyter-book build --execute --html 2>&1 | tee /tmp/mystbuild.log"
77-
buildhtml: bash -c "if grep -q 'Traceback .most recent call last.' /tmp/mystbuild.log; then exit 1; fi"
76+
buildhtml: bash -c "echo 'Notebooks ignored (not tested/executed) in this job:\n'; cat ignore_execute"
77+
# Using srtict so we fail with trackbacks and debug mode to have a richer log
78+
buildhtml: bash -c "npx myst build --execute --html --strict -d"
7879

7980
pip_pre =
8081
predeps: true

tutorials/cloud_access/cloud-access-intro.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ kernelspec:
1111
name: python3
1212
---
1313

14+
(cloud-access-intro)=
1415
# IRSA cloud access introduction
1516

1617
This is the introductory tutorial demonstrating basic python access to the IRSA-curated images and catalogs available in AWS S3 cloud storage buckets.

tutorials/firefly/NEOWISE_light_curve_demo.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ For documentation on the firefly client visit https://caltech-ipac.github.io/fir
3737

3838
## Imports
3939

40-
- *firefly_client FireflyClient* - Python API to Firefly for displaying tables, images and charts
41-
- *astropy.utils.data* for downloading the catalog data via TAP query
42-
- *urllib.parse* for converting regular query string to url-safe string
40+
- `firefly_client FireflyClient` - Python API to Firefly for displaying tables, images and charts
41+
- `astropy.utils.data` for downloading the catalog data via TAP query
42+
- `urllib.parse` for converting regular query string to url-safe string
4343

4444
```{code-cell} ipython3
4545
# Uncomment the next line to install dependencies if needed.

tutorials/firefly/SEDs_in_Firefly.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ import pyvo
8484

8585
+++
8686

87-
From [Figure 10](https://iopscience.iop.org/article/10.3847/1538-3881/ace32f#ajace32ff10) of the referenced paper, pick the source in the upper right corner (J052736.37+344940.6):
87+
From [Figure 10](https://doi.org/10.3847/1538-3881/ace32f#ajace32ff10) of the referenced paper, pick the source in the upper right corner (J052736.37+344940.6):
8888

8989
```{code-cell} ipython3
9090
target = SkyCoord(ra="05h27m36.37s", dec="+34d49m40.6s")

tutorials/irsa-sia-examples/sia_2mass_allsky.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,14 @@ https://irsa.ipac.caltech.edu/docs/program_interface/api_images.html
4747

4848
## Imports
4949

50-
- *pyvo* for querying IRSA's 2MASS SIA service
51-
- *astropy.coordinates* for defining coordinates
52-
- *astropy.nddata* for creating an image cutout
53-
- *astropy.wcs* for interpreting the World Coordinate System header keywords of a fits file
54-
- *astropy.units* for attaching units to numbers passed to the SIA service
55-
- *matplotlib.pyplot* for plotting
56-
- *astropy.utils.data* for downloading files
57-
- *astropy.io* to manipulate FITS files
50+
- `pyvo` for querying IRSA's 2MASS SIA service
51+
- `astropy.coordinates` for defining coordinates
52+
- `astropy.nddata` for creating an image cutout
53+
- `astropy.wcs` for interpreting the World Coordinate System header keywords of a fits file
54+
- `astropy.units` for attaching units to numbers passed to the SIA service
55+
- `matplotlib.pyplot` for plotting
56+
- `astropy.utils.data` for downloading files
57+
- `astropy.io` to manipulate FITS files
5858

5959
```{code-cell} ipython3
6060
# Uncomment the next line to install dependencies if needed.

tutorials/irsa-sia-examples/sia_allwise_atlas.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,14 @@ https://irsa.ipac.caltech.edu/docs/program_interface/api_images.html
4848

4949
## Imports
5050

51-
- *pyvo* for querying IRSA's AllWISE Atlas SIA service
52-
- *astropy.coordinates* for defining coordinates
53-
- *astropy.nddata* for creating an image cutout
54-
- *astropy.wcs* for interpreting the World Coordinate System header keywords of a fits file
55-
- *astropy.units* for attaching units to numbers passed to the SIA service
56-
- *matplotlib.pyplot* for plotting
57-
- *astropy.utils.data* for downloading files
58-
- *astropy.io* to manipulate FITS files
51+
- `pyvo` for querying IRSA's AllWISE Atlas SIA service
52+
- `astropy.coordinates` for defining coordinates
53+
- `astropy.nddata` for creating an image cutout
54+
- `astropy.wcs` for interpreting the World Coordinate System header keywords of a fits file
55+
- `astropy.units` for attaching units to numbers passed to the SIA service
56+
- `matplotlib.pyplot` for plotting
57+
- `astropy.utils.data` for downloading files
58+
- `astropy.io` to manipulate FITS files
5959

6060
```{code-cell} ipython3
6161
# Uncomment the next line to install dependencies if needed.

tutorials/irsa-sia-examples/sia_cosmos.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,14 @@ https://irsa.ipac.caltech.edu/docs/program_interface/api_images.html
4747

4848
## Imports
4949

50-
- *pyvo* for querying IRSA's COSMOS SIA service
51-
- *astropy.coordinates* for defining coordinates
52-
- *astropy.nddata* for creating an image cutout
53-
- *astropy.wcs* for interpreting the World Coordinate System header keywords of a fits file
54-
- *astropy.units* for attaching units to numbers passed to the SIA service
55-
- *matplotlib.pyplot* for plotting
56-
- *astropy.utils.data* for downloading files
57-
- *astropy.io* to manipulate FITS files
50+
- `pyvo` for querying IRSA's COSMOS SIA service
51+
- `astropy.coordinates` for defining coordinates
52+
- `astropy.nddata` for creating an image cutout
53+
- `astropy.wcs` for interpreting the World Coordinate System header keywords of a fits file
54+
- `astropy.units` for attaching units to numbers passed to the SIA service
55+
- `matplotlib.pyplot` for plotting
56+
- `astropy.utils.data` for downloading files
57+
- `astropy.io` to manipulate FITS files
5858

5959
```{code-cell} ipython3
6060
# Uncomment the next line to install dependencies if needed.

tutorials/irsa-sia-examples/siav2_seip.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,14 @@ https://irsa.ipac.caltech.edu/docs/program_interface/api_images.html
5050

5151
## Imports
5252

53-
- *pyvo* for querying IRSA's SEIP SIA service
54-
- *astropy.coordinates* for defining coordinates
55-
- *astropy.nddata* for creating an image cutout
56-
- *astropy.wcs* for interpreting the World Coordinate System header keywords of a fits file
57-
- *astropy.units* for attaching units to numbers passed to the SIA service
58-
- *matplotlib.pyplot* for plotting
59-
- *astropy.utils.data* for downloading files
60-
- *astropy.io* to manipulate FITS files
53+
- `pyvo` for querying IRSA's SEIP SIA service
54+
- `astropy.coordinates` for defining coordinates
55+
- `astropy.nddata` for creating an image cutout
56+
- `astropy.wcs` for interpreting the World Coordinate System header keywords of a fits file
57+
- `astropy.units` for attaching units to numbers passed to the SIA service
58+
- `matplotlib.pyplot` for plotting
59+
- `astropy.utils.data` for downloading files
60+
- `astropy.io` to manipulate FITS files
6161

6262
```{code-cell} ipython3
6363
# Uncomment the next line to install dependencies if needed.

tutorials/parquet-catalog-demos/irsa-hats-with-lsdb.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ The rationale for selecting these columns is as follows:
326326
ztf_schema_df[ztf_schema_df.name.isin(ztf_columns)]
327327
```
328328

329-
For a quality cut, we apply the following filter on the number of good epochs (from [Coughlin et al. 2021](https://academic.oup.com/mnras/article/505/2/2954/6284767) section 2):
329+
For a quality cut, we apply the following filter on the number of good epochs (from {cite}`doi.org/10.1093/mnras/stab1502`) section 2):
330330

331331
```{code-cell} ipython3
332332
quality_filters = [

0 commit comments

Comments
 (0)