diff --git a/README.md b/README.md index 659c989d7dd54f3a149c624a2080a51de908f78e..d4bc666e28d6820d98c28d5d4b3c282bd1b17e73 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # DR1 tutorials -[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/git/https%3A%2F%2Fgloton.ugr.es%2Fgitlab%2Fcavity%2Fdr1-tutorials) +[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/git/https%3A%2F%2Fgloton.ugr.es%2Fgitlab%2Fcavity%2Fdr1-tutorials/HEAD) This repository contains basic tutorials showing the CAVITY TAP service functionalities. \ No newline at end of file diff --git a/notebooks/tutorial_DR1.ipynb b/notebooks/tutorial_DR1.ipynb index d1438f1aafc65f6f6cf8fec04d0f2bd33f0fc947..d7295965519a5d419f681f9a6de00071c96b911a 100644 --- a/notebooks/tutorial_DR1.ipynb +++ b/notebooks/tutorial_DR1.ipynb @@ -37,7 +37,7 @@ "outputs": [], "source": [ "url = \"https://cavity.caha.es/tap\"\n", - "token = 'cf16899d345b765aba64b63ec0a92700a00beb36'" + "token = ''" ] }, { @@ -56,8 +56,10 @@ ], "source": [ "# Setup authorization\n", - "tap_session = requests.Session()\n", - "tap_session.headers['Authorization'] = f'Token {token}'\n", + "tap_session = None\n", + "if len(token)>0:\n", + " tap_session = requests.Session()\n", + " tap_session.headers['Authorization'] = f'Token {token}'\n", "\n", "# Init service\n", "tap_service = pyvo.dal.TAPService(url, session=tap_session)\n", diff --git a/notebooks/tutorial_DR1_xmatch.ipynb b/notebooks/tutorial_DR1_xmatch.ipynb index 4c50d9c75363163c3e7ed3ce025f2c6bf8d4e285..172c56b3d32f723999d3a09c73d026e2445a2308 100644 --- a/notebooks/tutorial_DR1_xmatch.ipynb +++ b/notebooks/tutorial_DR1_xmatch.ipynb @@ -41,7 +41,7 @@ "outputs": [], "source": [ "url = \"https://cavity.caha.es/tap\"\n", - "token = 'cf16899d345b765aba64b63ec0a92700a00beb36'" + "token = ''" ] }, { @@ -60,8 +60,10 @@ ], "source": [ "# Setup authorization\n", - "tap_session = requests.Session()\n", - "tap_session.headers['Authorization'] = f'Token {token}'\n", + "tap_session = None\n", + "if len(token)>0:\n", + " tap_session = requests.Session()\n", + " tap_session.headers['Authorization'] = f'Token {token}'\n", "\n", "# Init service\n", "tap_service = pyvo.dal.TAPService(url, session=tap_session)\n",