Skip to content

Commit

Permalink
Other tweaks to documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
Juan Cabanela committed Jun 23, 2023
1 parent 1824394 commit 0c24f85
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions stellarphot/analysis/exotic.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,13 +221,13 @@ def populate_TIC_boxes(tic_info, value_widget):
def populate_TOI_boxes(toi, exotic_widget):
"""
Set the appropriate widget values given information pulled from
MAST TIC.
TESS Target of Interest (TOI) list.
Parameters
----------
toi : `~stellarphot.io.tess.TOI`
Information about the TIC object.
Information about the TESS Target of Interest (TOI) object.
exotic_widget: ipywidget
This widget should be generated by exotic_settings_widget.
Expand Down
8 changes: 6 additions & 2 deletions stellarphot/io/tess.py
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,9 @@ class TessTargetFile:
The depth of the transit.
file : str, optional
The path to a file listing the targets. If not provided, a temporary file will be created.
The path to a file that will be written containing the GAIA sources
within 2.5 arcminutes the TESS target. If not provided, a temporary
file will be created.
aperture_server : str, optional
The URL of the aperture server. default: https://www.astro.louisville.edu/
Expand All @@ -420,7 +422,8 @@ class TessTargetFile:
The depth of the transit.
file : str
The path to the target file. If not provided, a temporary file will be created.
The path to the file to create with the downloaded GAIA
data. If not provided, a temporary file will be created.
magnitude : float
The magnitude of the target.
Expand Down Expand Up @@ -459,6 +462,7 @@ def _retrieve_target_file(self):
links = re.search('href="(.+)"', result.text.replace('\n', ''), )
download_link = self.aperture_server + links[1]
target_file_contents = requests.get(download_link)
# Write GAIA data to local file
with open(self._path, "w") as f:
f.write(target_file_contents.text)

Expand Down

0 comments on commit 0c24f85

Please sign in to comment.