Skip to content

Commit

Permalink
Fix tutorials not passing nbval
Browse files Browse the repository at this point in the history
  • Loading branch information
thuiop committed Jul 19, 2021
1 parent 9a177c5 commit f54e080
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 5 deletions.
14 changes: 11 additions & 3 deletions notebooks/cosmos_tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"cells": [
{
"cell_type": "markdown",
"id": "12a7999a",
"metadata": {},
"source": [
"# COSMOS image generation tutorial\n",
Expand All @@ -12,6 +13,7 @@
{
"cell_type": "code",
"execution_count": 1,
"id": "4eefbe0a",
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -39,6 +41,7 @@
},
{
"cell_type": "markdown",
"id": "5b1c89e1",
"metadata": {},
"source": [
"## Drawing blends\n",
Expand All @@ -49,6 +52,7 @@
{
"cell_type": "code",
"execution_count": 2,
"id": "0b49f336",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -61,6 +65,7 @@
},
{
"cell_type": "markdown",
"id": "975ddc32",
"metadata": {},
"source": [
"We can now create the corresponding instance of DrawBlendsGenerator. There is an important caveat here : as in the other tutorial, we use the Rubin survey. However, the COSMOS catalog only contains images from the f814w band ; thus, when simulating images, the same magnitude is used to compute the galaxy fluxes across all bands.\n",
Expand All @@ -71,6 +76,7 @@
{
"cell_type": "code",
"execution_count": 3,
"id": "de364e04",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -89,6 +95,7 @@
{
"cell_type": "code",
"execution_count": 4,
"id": "e7bb0a6e",
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -198,16 +205,17 @@
{
"cell_type": "code",
"execution_count": null,
"id": "fbdf287f",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "btk",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "btk"
"name": "python3"
},
"language_info": {
"codemirror_mode": {
Expand All @@ -219,7 +227,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.10"
"version": "3.7.10"
}
},
"nbformat": 4,
Expand Down
9 changes: 7 additions & 2 deletions notebooks/multi-tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,11 @@
"cell_type": "code",
"execution_count": 7,
"id": "6374c0e0",
"metadata": {},
"metadata": {
"tags": [
"nbval-ignore-output"
]
},
"outputs": [
{
"data": {
Expand Down Expand Up @@ -567,8 +571,9 @@
}
],
"metadata": {
"celltoolbar": "Aucun(e)",
"kernelspec": {
"display_name": "Python 3",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
Expand Down

0 comments on commit f54e080

Please sign in to comment.