Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove duplicate MAST token example #2402

Merged
merged 1 commit into from
May 13, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 1 addition & 13 deletions docs/mast/mast.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1132,18 +1132,6 @@ If a token is not supplied, the user will be prompted to enter one.

To view tokens accessible through your account, visit https://auth.mast.stsci.edu

.. doctest-skip::

>>> from astroquery.mast import Observations
...
>>> Observations.login(token="12348r9w0sa2392ff94as841")
INFO: MAST API token accepted, welcome User Name [astroquery.mast.core]
...
>>> sessioninfo = Observations.session_info()
eppn: user_name@stsci.edu
ezid: uname
...

.. doctest-skip::

>>> from astroquery.mast import Observations
Expand All @@ -1154,7 +1142,7 @@ To view tokens accessible through your account, visit https://auth.mast.stsci.ed
>>> sessioninfo = Observations.session_info()
eppn: user_name@stsci.edu
ezid: uname
...
...

\* For security tokens should not be typed into a terminal or Jupyter notebook
but instead input using a more secure method such as `~getpass.getpass`.
Expand Down