Skip to content

Commit

Permalink
Remove duplicate MAST token example
Browse files Browse the repository at this point in the history
  • Loading branch information
larrybradley committed May 11, 2022
1 parent 729fd4d commit f8061fb
Showing 1 changed file with 1 addition and 13 deletions.
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

0 comments on commit f8061fb

Please sign in to comment.